#include <XMLParser.h>
Inheritance diagram for util::xml::XMLParser:

It may be used in a streaming mode or as a DOM-like parser. The objects representing XML markup are close approximations to those defined in the DOM 1.0 specification.
Public Methods | |
| XMLParser () | |
| Create a new XML parser. | |
| Node * | getNextNode (std::istream &in) throw (util::io::IOException&, XMLException&) |
| Get the XML element from an input stream. | |
| Document * | readDocument (std::istream &in) throw (util::io::IOException&, XMLException&) |
| Read an XML document and return a pointer to a newly allocated Document object. | |
| Node * | readFragment (std::istream &in) throw (util::io::IOException&, XMLException&) |
| Read a fragment of an XML document. | |
|
|
Get the XML element from an input stream. The next element may be any XML document element inherited from Node.
|
|
|
Read an XML document and return a pointer to a newly allocated Document object. The document must be a well-formed XML document, i.e. it must start with <?xml version="1.0"?>, have a single root element, nest properly, etc.
|
|
|
Read a fragment of an XML document. If the next Node red from a stream is an Element, its children will be read as well. |