|
Yate
|
Document Object Model XML Parser. More...
#include <yatexml.h>
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 void | escape (String &buf, const String &text) |
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
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().
|
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.
Append a xml comment in the xml tree
| text | The comment content |
Reimplemented from XmlSaxParser.
Append a xml declaration in the xml tree
| decl | The declaration content |
Reimplemented from XmlSaxParser.
Append a xml doctype in the xml tree
| doc | The doctype content |
Reimplemented from XmlSaxParser.
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.
|
inline |
Check if the current element is the given one
| el | The element to compare with |
Reset parser
Reimplemented from XmlSaxParser.