| 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 | 
|  Public Member Functions inherited from XmlSaxParser | |
| virtual | ~XmlSaxParser () | 
| unsigned int | offset () const | 
| unsigned int | row () const | 
| unsigned int | column () const | 
| const String & | buffer () const | 
| bool | parse (const char *data) | 
| bool | completeText () | 
| Error | error () | 
| bool | setError (Error error, XmlChild *child=0) | 
| const char * | getError (const char *defVal="Xml error") | 
| Type | unparsed () | 
| void | setUnparsed (Type id) | 
| const String & | getBuffer () const | 
|  Public Member Functions inherited from DebugEnabler | |
| DebugEnabler (int level=TelEngine::debugLevel(), bool enabled=true) | |
| int | debugLevel () const | 
| int | debugLevel (int level) | 
| bool | debugEnabled () const | 
| void | debugEnabled (bool enable) | 
| const char * | debugName () const | 
| bool | debugAt (int level) const | 
| bool | debugChained () const | 
| void | debugChain (const DebugEnabler *chain=0) | 
| void | debugCopy (const DebugEnabler *original=0) | 
| void | debugSet (const char *desc) | 
| 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 () | 
|  Protected Member Functions inherited from XmlSaxParser | |
| XmlSaxParser (const char *name="XmlSaxParser") | |
| bool | parseInstruction () | 
| bool | parseCData () | 
| bool | parseComment () | 
| bool | parseElement () | 
| bool | parseDeclaration () | 
| bool | parseSpecial () | 
| bool | parseEndTag () | 
| bool | parseDoctype () | 
| bool | auxParse () | 
| void | unEscape (String &text) | 
| void | skipBlanks () | 
| bool | badCharacter (char c) | 
| void | resetError () | 
| void | resetParsed () | 
| String * | extractName (bool &empty) | 
| NamedString * | getAttribute () | 
| bool | processElement (NamedList &list, bool empty) | 
| bool | processText (String &text) | 
|  Protected Member Functions inherited from DebugEnabler | |
| void | debugName (const char *name) | 
| Friends | |
| class | XmlChild | 
| Additional Inherited Members | |
|  Public Types inherited from XmlSaxParser | |
| enum | Error { NoError = 0 , NotWellFormed , Unknown , IOError , ElementParse , ReadElementName , InvalidElementName , ReadingAttributes , CommentParse , DeclarationParse , DefinitionParse , CDataParse , ReadingEndTag , Incomplete , InvalidEncoding , UnsupportedEncoding , UnsupportedVersion } | 
| enum | Type { None = 0 , Text = 1 , CData = 2 , Element = 3 , Doctype = 4 , Comment = 5 , Declaration = 6 , Instruction = 7 , EndTag = 8 , Special = 9 } | 
|  Static Public Member Functions inherited from XmlSaxParser | |
| static const char * | getError (int code, const char *defVal="Xml error") | 
| static bool | blank (char c) | 
| static bool | checkFirstNameCharacter (unsigned char ch) | 
| static bool | checkDataChar (unsigned char c) | 
| static bool | checkNameCharacter (unsigned char ch) | 
| static bool | validTag (const String &buf) | 
| static String & | escape (String &buf, const String &text) | 
| static bool | unEscape (String &text, String *error, bool *found=0) | 
| static bool | unEscape (String &text, const char *str, unsigned int len, String *error, bool inText=false, bool *found=0) | 
|  Static Public Attributes inherited from XmlSaxParser | |
| static const TokenDict | s_errorString [] | 
| static const XmlEscape | s_escape [] | 
|  Protected Attributes inherited from XmlSaxParser | |
| unsigned int | m_offset | 
| unsigned int | m_row | 
| unsigned int | m_column | 
| Error | m_error | 
| String | m_buf | 
| NamedList | m_parsed | 
| Type | m_unparsed | 
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 | 
Destructor
| 
 | inlineprotectedvirtual | 
Callback method. Is called to check if we have an incomplete element
Reimplemented from XmlSaxParser.
| 
 | inline | 
Obtain an XmlDocument from the parsed data
References XmlParent::document().
| 
 | protectedvirtual | 
| 
 | inline | 
Obtain an XmlFragment from the parsed data
References XmlParent::fragment().
| 
 | protectedvirtual | 
Append a xml CData in the xml tree
| data | The CData content | 
Reimplemented from XmlSaxParser.
| 
 | protectedvirtual | 
Append a xml comment in the xml tree
| text | The comment content | 
Reimplemented from XmlSaxParser.
| 
 | protectedvirtual | 
Append a xml declaration in the xml tree
| decl | The declaration content | 
Reimplemented from XmlSaxParser.
| 
 | protectedvirtual | 
Append a xml doctype in the xml tree
| doc | The doctype content | 
Reimplemented from XmlSaxParser.
| 
 | protectedvirtual | 
Append a xml element in the xml tree
| element | The element content | 
| empty | True if the element does not have attributes | 
Reimplemented from XmlSaxParser.
| 
 | protectedvirtual | 
Append a xml instruction in the xml tree
| instr | The instruction content | 
Reimplemented from XmlSaxParser.
| 
 | protectedvirtual | 
| 
 | inline | 
Check if the current element is the given one
| el | The element to compare with | 
| 
 | virtual | 
Reset parser
Reimplemented from XmlSaxParser.