class XmlDomParser

Document Object Model XML Parser. More...

Full nameTelEngine::XmlDomParser
Definition#include <libs/yxml/yatexml.h>
InheritsTelEngine::XmlSaxParser [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

A Document Object Model (DOM) parser for XML documents and fragments

 XmlDomParser (const char* name = "XmlDomParser", bool fragment = false)

XmlDomParser

XmlDomParser constructor

Parameters:
nameDebug name
fragmentTrue if this parser needs to parse a piece of a xml document

 XmlDomParser (XmlParent* fragment, bool takeOwnership)

XmlDomParser

XmlDomParser constructor

Parameters:
fragmentThe fragment who should keep the parsed data
takeOwnershipTrue to take ownership of the fragment

 ~XmlDomParser ()

~XmlDomParser

[virtual]

Destructor

XmlDocument*  document ()

document

Obtain an XmlDocument from the parsed data

Returns: The XmlDocument or 0

XmlFragment*  fragment ()

fragment

Obtain an XmlFragment from the parsed data

Returns: The XmlFragment or 0

void  reset ()

reset

[virtual]

Reset parser

Reimplemented from XmlSaxParser.

inline bool  isCurrent (const XmlElement* el)

isCurrent

[const]

Check if the current element is the given one

Parameters:
elThe element to compare with

Returns: True if they are equal

void  gotComment (const String& text)

gotComment

[protected virtual]

Append a xml comment in the xml tree

Parameters:
textThe comment content

Reimplemented from XmlSaxParser.

void  gotProcessing (const NamedString& instr)

gotProcessing

[protected virtual]

Append a xml instruction in the xml tree

Parameters:
instrThe instruction content

Reimplemented from XmlSaxParser.

void  gotDeclaration (const NamedList& decl)

gotDeclaration

[protected virtual]

Append a xml declaration in the xml tree

Parameters:
declThe declaration content

Reimplemented from XmlSaxParser.

void  gotText (const String& text)

gotText

[protected virtual]

Append a xml text in the xml tree

Parameters:
textThe text content

Reimplemented from XmlSaxParser.

void  gotCdata (const String& data)

gotCdata

[protected virtual]

Append a xml CData in the xml tree

Parameters:
dataThe CData content

Reimplemented from XmlSaxParser.

void  gotElement (const NamedList& element, bool empty)

gotElement

[protected virtual]

Append a xml element in the xml tree

Parameters:
elementThe element content
emptyTrue if the element does not have attributes

Reimplemented from XmlSaxParser.

void  endElement (const String& name)

endElement

[protected virtual]

Complete current element

Parameters:
nameThe end tag name

Reimplemented from XmlSaxParser.

void  gotDoctype (const String& doc)

gotDoctype

[protected virtual]

Append a xml doctype in the xml tree

Parameters:
docThe doctype content

Reimplemented from XmlSaxParser.

bool  completed ()

completed

[protected virtual]

Callback method. Is called to check if we have an incomplete element

Returns: True if current element is not 0

Reimplemented from XmlSaxParser.


Generated by: paulc on bussard on Tue Apr 12 17:15:21 2011, using kdoc 2.0a54.