Loading
DOM PARSER

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  What is DOM parser ?


Ans)

The DOM specification defines a tree-based approach to navigating an XML document. In other
words, a DOM parser processes XML data and creates an object-oriented hierarchical representation
of the document that you can navigate at run-time.

public class Test {
        public static void main(String[] args) {
                try {
                        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();    
                        DocumentBuilder db = dbf.newDocumentBuilder();        
                        InputSource is = new InputSource(new StringReader(in));
                        return db.parse(is);     

                } catch (Exception e) {
               }
        }
}



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

DOM PARSER


DOM PARSER

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free