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 are the three parts of XSL?
Do xml namespace declarations apply to dtds?
Why xslt is used?
How does xml parsing work?
Can I use qualified names in dtds?
Explain how to rename a particular element and attribute from XML using XSL?
How are web feeds read?
What is xmlns xs?
Write a program to show the element is occurring as a child?
What is xml designed for?
Can xml be used as a database?
How do I create a rss link?
Can I encode mathematics using XML?
How do I convert an xml file to excel?
Define xml schema?