System::Xml::XmlNamespaceManager::LookupNamespace method

XmlNamespaceManager::LookupNamespace method

返回指定前缀的命名空间 URI。

String System::Xml::XmlNamespaceManager::LookupNamespace(const String &prefix) override
参数类型描述
prefixconst String&要解析其命名空间 URI 的前缀。若要匹配默认命名空间,请传入 String::Empty

ReturnValue

prefix 的命名空间 URI,若没有映射的命名空间则返回 nullptr。返回的字符串已原子化。有关原子化字符串的更多信息,请参阅 XmlNameTable 类。

另见