稍后在这个方法中,可以用NSStack来添加一个新的名称空间,还可以用它在整个堆栈中搜索给予一个URI的前缀。
Later on in the method, NSStack can be used to add a new namespace and search through the stack for the prefix given a URI.
用来定义要搜索的XML部分的XPath表达式没有包含名称空间前缀——换句话说,没有包含完全限定的元素名称(QName)。
The XPath expression used to define the XML part to search in does not contain the namespace prefix — the fully qualified element name (QName), in other words.
和通常一样,XPath位置路径必须使用名称空间前缀,即使搜索的文档使用默认名称空间也仍然如此。
As always in XPath, the location path must use namespace prefixes even if the searched document USES the default namespace.
应用推荐