|
Yate
|
Document Object Model XML Parser. More...
#include <yatexml.h>
Public Member Functions | |
| XmlDomParser (const char *name="XmlDomParser", bool fragment=false) | |
| XmlDomParser (XmlParent *fragment, bool takeOwnership) | |
| virtual | ~XmlDomParser () |
| XmlDocument * | document () |
| XmlFragment * | fragment () |
| virtual void | reset () |
| bool | isCurrent (const XmlElement *el) const |
Protected Member Functions | |
| virtual void | gotComment (const String &text) |
| virtual void | gotProcessing (const NamedString &instr) |
| virtual void | gotDeclaration (const NamedList &decl) |
| virtual void | gotText (const String &text) |
| virtual void | gotCdata (const String &data) |
| virtual void | gotElement (const NamedList &element, bool empty) |
| virtual void | endElement (const String &name) |
| virtual void | gotDoctype (const String &doc) |
| virtual bool | completed () |
Friends | |
| class | XmlChild |
Document Object Model XML Parser.
A Document Object Model (DOM) parser for XML documents and fragments
| XmlDomParser | ( | const char * | name = "XmlDomParser", |
| bool | fragment = false |
||
| ) |
XmlDomParser constructor
| name | Debug name |
| fragment | True if this parser needs to parse a piece of a xml document |
| XmlDomParser | ( | XmlParent * | fragment, |
| bool | takeOwnership | ||
| ) |
XmlDomParser constructor
| fragment | The fragment who should keep the parsed data |
| takeOwnership | True to take ownership of the fragment |
| virtual ~XmlDomParser | ( | ) | [virtual] |
Destructor
| virtual bool completed | ( | ) | [inline, protected, virtual] |
Callback method. Is called to check if we have an incomplete element
Reimplemented from XmlSaxParser.
| XmlDocument* document | ( | ) | [inline] |
Obtain an XmlDocument from the parsed data
References XmlDocument::document().
| virtual void endElement | ( | const String & | name | ) | [protected, virtual] |
| XmlFragment* fragment | ( | ) | [inline] |
Obtain an XmlFragment from the parsed data
References XmlParent::fragment().
Append a xml CData in the xml tree
| data | The CData content |
Reimplemented from XmlSaxParser.
| virtual void gotComment | ( | const String & | text | ) | [protected, virtual] |
Append a xml comment in the xml tree
| text | The comment content |
Reimplemented from XmlSaxParser.
| virtual void gotDeclaration | ( | const NamedList & | decl | ) | [protected, virtual] |
Append a xml declaration in the xml tree
| decl | The declaration content |
Reimplemented from XmlSaxParser.
| virtual void gotDoctype | ( | const String & | doc | ) | [protected, virtual] |
Append a xml doctype in the xml tree
| doc | The doctype content |
Reimplemented from XmlSaxParser.
| virtual void gotElement | ( | const NamedList & | element, |
| bool | empty | ||
| ) | [protected, virtual] |
Append a xml element in the xml tree
| element | The element content |
| empty | True if the element does not have attributes |
Reimplemented from XmlSaxParser.
| virtual void gotProcessing | ( | const NamedString & | instr | ) | [protected, virtual] |
Append a xml instruction in the xml tree
| instr | The instruction content |
Reimplemented from XmlSaxParser.
| bool isCurrent | ( | const XmlElement * | el | ) | const [inline] |
Check if the current element is the given one
| el | The element to compare with |
| virtual void reset | ( | ) | [virtual] |
Reset parser
Reimplemented from XmlSaxParser.
1.7.6.1