开发者

Ignoring namespace prefix while parsing xml

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜