开发者

Ignoring namespace prefix while parsing xml

开发者 https://www.devze.com 2022-12-30 05:57 出处:网络
If a xhtml file has namespace prefixes in the document and the namespace for the prefixes is not defined, is it possible to ignore t开发者_如何转开发he prefixes and still parse the file when using SAX

If a xhtml file has namespace prefixes in the document and the namespace for the prefixes is not defined, is it possible to ignore t开发者_如何转开发he prefixes and still parse the file when using SAX parser. Is there a way to get rid of the error "The prefix for element is not bound." without defining the namespace for the prefixes while parsing?


If the prefix for the element is not bound; this is an error in the XML. However; you could try to call [parser setShouldProcessNamespaces:NO];.

0

精彩评论

暂无评论...
验证码 换一张
取 消