Can you walk us through the steps necessary to parse XML
documents?

Answers were Sorted based on User's Feedback



Can you walk us through the steps necessary to parse XML documents?..

Answer / 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

Can you walk us through the steps necessary to parse XML documents?..

Answer / guest

Superficially, this is a fairly basic question. However, the
ball is not to determine whether candidates understand the
concept of a parser but rather have them walk through the
process of parsing XML documents step-by-step. Determining
whether a non-validating or validating parser is needed,
choosing the appropriate parser, and handling errors are all
important aspects to this process that should be included in
the candidate's response.

Is This Answer Correct ?    4 Yes 0 No

Can you walk us through the steps necessary to parse XML documents?..

Answer / sree

can u tell me the steps

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More XML XSLT RSS Interview Questions

what is XML?

2 Answers   Maveric,


How do I configure an xpointer processor?

0 Answers  


Which was the first processor related to XSLT?

0 Answers  


Which browser first used the rss feed?

0 Answers  


What does soap stand for?

0 Answers  






What are the standard ways of parsing xml document? Or what is a xml parser?

0 Answers  


Where can I find my rss feed on wordpress?

0 Answers  


How to connect xml with the database?

0 Answers  


Can the attribute list of an element type contain attributes whose names come from other xml namespaces?

0 Answers  


What are the different scenarios under which an xml schema may be used?

0 Answers  


What are the three components in soap?

0 Answers  


How do you create a docx file?

0 Answers  


Categories