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 the best rss reader?
How was xml created?
How do I run an xml file?
What is an xml namespace prefix?
What is the function of xsl?
Is xml a nosql?
How do I run an xml file in notepad?
What do xml editors check?
Why was xml created?
What is the relation between rss and xml?
How do I download a podcast from patreon?
How do I find the rss feed for my blog?
What are the parsers are supported in xml?
Do I have to know html or sgml before I learn xml?
What is text () in xpath?