Can you walk us through the steps necessary to parse XML
documents?
Answer Posted / chandrasekhar
1.create a instance of DocumentBuilderFactory Object using
newInstance() method.
2.get reference to DocumentBuilder object using
newDocumentBuilder() method of DocumentBuilderFactory.
3.get reference to Document object of the xml file to be
parsed by using DocumentBuilder.parse(File xmlfile) with
File object as argument.
start using Document object to get the elements of the xml
file using getElementsByTagName(),getElementsByName()
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is xsl text?
What is the usage of xslt
What is xml schema in html?
Does google have an rss reader?
What is a unicode character?
What are the elements of wsdl?
If xml is just a subset of sgml, can I use xml files directly with existing sgml tools?
Is dtd better than xml?
What is xml simple definition?
What are the advantages of using xforms over html?
How do I convert html to xml?
How do I create an xml file on a mac?
How do I put an rss feed on my podcast on itunes?
How does a template instantiated?
Explain how to remove a particular attribute from XML?