Java Dom Parser
Dom parser is slow and consumes a lot of memory when it loads an xml document which contains a lot of data.
Java dom parser. Dom parser is intended for working with xml as an object graph a tree like structure in memory so called document object model dom. Reading xml data into a dom in this section you will construct a document object model by reading in an existing xml file. Wie schon erwahnt bildet der dom parser das xml dokument auf einen dom tree ab. You need to move parts of an xml document around you might want to sort certain elements for example.
Note in extensible stylesheet language transformations you will see how to write out a dom as an xml file. Please consider sax parser as solution for it sax is faster than dom and use less memory. In first the parser traverses the input xml file and creates dom objects corresponding to the nodes in xml file.