Android Sax With Rdf
i try to parse an rdf file using android.sax and android.utils.Xml methods. My parser ouputs nothing and don't send any exception. RDF file:
Solution 1:
<rdf:RDF ...>
<item>...</item>
</rdf:RDF>
Item element is not in rdf: namespace, relevant command should read: item = root.getChild("", ITEM);
Solution 2:
Your code looks strange, why you do not use a normal SaxParser? http://www.mkyong.com/java/how-to-read-xml-file-in-java-sax-parser/
Solution 3:
why not use any common feed java parser?
BTW, the RSS_NAMESPACE variable in your code doesn't fit with the namespace used in the file: default namespace doesn't mean empty namespace.
Post a Comment for "Android Sax With Rdf"