result_t XmlDocument::lookupNamespaceURI(const char *prefix, std::string &retVal) { if (globalNamespaceURI(prefix, retVal)) return 0; if (!m_element) return CALL_RETURN_NULL; return m_element->lookupNamespaceURI(prefix, retVal); }
result_t XmlElement::lookupNamespaceURI(exlib::string prefix, exlib::string& retVal) { if (globalNamespaceURI(prefix, retVal)) return 0; result_t hr = m_attrs->lookupNamespaceURI(prefix, retVal); if (hr < 0) return hr; if (hr != CALL_RETURN_NULL) return retVal.empty() ? CALL_RETURN_NULL : 0; return XmlNodeImpl::lookupNamespaceURI(prefix, retVal); }