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];
.
精彩评论