Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

XmlHandler Class Reference

XML document structure holder. More...

#include </home/clem/local/src/opie/library/xmlreader.h>

Collaboration diagram for XmlHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 XmlHandler ()
 ~XmlHandler ()
bool startDocument ()
bool endDocument ()
bool startElement (const QString &ns, const QString &ln, const QString &qName, const QXmlAttributes &attr)
bool endElement (const QString &ns, const QString &ln, const QString &qName)
bool characters (const QString &ch)
NodefirstNode () const

Private Attributes

Nodenode
Nodetree
XmlHandlerPrivate * d

Detailed Description

XML document structure holder.

This class provides a Node structure that developers can read their xml data into.

Definition at line 61 of file xmlreader.h.


Constructor & Destructor Documentation

XmlHandler::XmlHandler  ) 
 

Definition at line 96 of file xmlreader.cpp.

XmlHandler::~XmlHandler  ) 
 

Definition at line 101 of file xmlreader.cpp.


Member Function Documentation

bool XmlHandler::characters const QString ch  ) 
 

Definition at line 147 of file xmlreader.cpp.

References Node::appendData(), node, and TRUE.

bool XmlHandler::endDocument  ) 
 

Definition at line 115 of file xmlreader.cpp.

References FALSE, node, tree, and TRUE.

bool XmlHandler::endElement const QString ns,
const QString ln,
const QString qName
 

Definition at line 137 of file xmlreader.cpp.

References FALSE, node, Node::parentNode(), tree, and TRUE.

Node* XmlHandler::firstNode  )  const [inline]
 

Definition at line 74 of file xmlreader.h.

References tree.

bool XmlHandler::startDocument  ) 
 

Definition at line 106 of file xmlreader.cpp.

References node, Node::setTagName(), tree, and TRUE.

bool XmlHandler::startElement const QString ns,
const QString ln,
const QString qName,
const QXmlAttributes &  attr
 

Definition at line 123 of file xmlreader.cpp.

References Node::addChild(), node, Node::setAttributes(), Node::setTagName(), and TRUE.


Member Data Documentation

XmlHandlerPrivate* XmlHandler::d [private]
 

Definition at line 78 of file xmlreader.h.

Node* XmlHandler::node [private]
 

Definition at line 77 of file xmlreader.h.

Referenced by characters(), endDocument(), endElement(), startDocument(), and startElement().

Node * XmlHandler::tree [private]
 

Definition at line 77 of file xmlreader.h.

Referenced by endDocument(), endElement(), firstNode(), and startDocument().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:56:00 2005 for OPIE by  doxygen 1.4.2