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
Which is better xml or html?
Why do we need dtd?
Is xml meant to replace html?
What are the steps required to render all the xml documents to html on server?
How do I identify the document type of an xml document?
How do I open an rss feed?
What is xml document?
Is it possible to use graphics in xml?
What is the advantage of automated testing over manual testing?
What is xsl format?
What are the parts in which template gets defined?
Can you use the xslt to convert html into vxml? : xslt
What are the different kinds of tags available in XML?
What is the stylesheet structure used with xslt?
How do I make an xml file readable?