Sunday, March 09, 2008
XML Parsing
Xerces and most other xml parsers provide DOM(document object model) and SAX (Simple API for XML) interfaces.While DOM parses the entire xml fileand presents it in the form of a tree,SAX is a event based parser.A novice would like to start with DOM interface which is easier to use.An advantagewith SAX parsers with that the entire document need not be parsed and stored in memory. You instead pass a number of callback routines and the parser will then parse the document and call the appropriate callback when certain conditions occur.(Eg: certain tag is found in the xml document)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment