Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
txAXMLEventHandler Class Reference

An interface for handling XML documents, loosely modeled after Dave Megginson's SAX 1.0 API. More...

#include <txXMLEventHandler.h>

Inheritance diagram for txAXMLEventHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~txAXMLEventHandler ()
virtual void attribute (const nsAString &aName, const PRInt32 aNsID, const nsAString &aValue)=0
 Signals to receive the start of an attribute.
virtual void characters (const nsAString &aData, PRBool aDOE)=0
 Signals to receive characters.
virtual void comment (const nsAString &aData)=0
 Signals to receive data that should be treated as a comment.
virtual void endDocument (nsresult aResult)=0
 Signals the end of a document.
virtual void endElement (const nsAString &aName, const PRInt32 aNsID)=0
 Signals to receive the end of an element.
virtual void processingInstruction (const nsAString &aTarget, const nsAString &aData)=0
 Signals to receive a processing instruction.
virtual void startDocument ()=0
 Signals the start of a document.
virtual void startElement (const nsAString &aName, const PRInt32 aNsID)=0
 Signals to receive the start of an element.

Detailed Description

An interface for handling XML documents, loosely modeled after Dave Megginson's SAX 1.0 API.

Definition at line 60 of file txXMLEventHandler.h.


Constructor & Destructor Documentation

virtual txAXMLEventHandler::~txAXMLEventHandler ( ) [inline, virtual]

Definition at line 63 of file txXMLEventHandler.h.

{};

Member Function Documentation

virtual void txAXMLEventHandler::attribute ( const nsAString &  aName,
const PRInt32  aNsID,
const nsAString &  aValue 
) [pure virtual]

Signals to receive the start of an attribute.

Parameters:
aNamethe name of the attribute
aNsIDthe namespace ID of the attribute
aValuethe value of the attribute

Implemented in txHTMLOutput, and txUnknownHandler.

Here is the caller graph for this function:

virtual void txAXMLEventHandler::characters ( const nsAString &  aData,
PRBool  aDOE 
) [pure virtual]

Signals to receive characters.

Parameters:
aDatathe characters to receive
aDOEdisable output escaping for these characters

Implemented in txHTMLOutput.

Here is the caller graph for this function:

virtual void txAXMLEventHandler::comment ( const nsAString &  aData) [pure virtual]

Signals to receive data that should be treated as a comment.

Parameters:
datathe comment data to receive

Here is the caller graph for this function:

virtual void txAXMLEventHandler::endDocument ( nsresult  aResult) [pure virtual]

Signals the end of a document.

It is an error to call this method more than once.

Implemented in txRtfHandler, and txUnknownHandler.

Here is the caller graph for this function:

virtual void txAXMLEventHandler::endElement ( const nsAString &  aName,
const PRInt32  aNsID 
) [pure virtual]

Signals to receive the end of an element.

Parameters:
aNamethe name of the element
aNsIDthe namespace ID of the element

Implemented in txHTMLOutput.

Here is the caller graph for this function:

virtual void txAXMLEventHandler::processingInstruction ( const nsAString &  aTarget,
const nsAString &  aData 
) [pure virtual]

Signals to receive a processing instruction.

Parameters:
aTargetthe target of the processing instruction
aDatathe data of the processing instruction

Implemented in txHTMLOutput.

Here is the caller graph for this function:

virtual void txAXMLEventHandler::startDocument ( ) [pure virtual]

Signals the start of a document.

Implemented in txRtfHandler, and txHTMLOutput.

Here is the caller graph for this function:

virtual void txAXMLEventHandler::startElement ( const nsAString &  aName,
const PRInt32  aNsID 
) [pure virtual]

Signals to receive the start of an element.

Parameters:
aNamethe name of the element
aNsIDthe namespace ID of the element

Implemented in txHTMLOutput, and txUnknownHandler.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: