Four Js Genero Report Writer
|
Go to the source code of this file.
Functions | |
void | destroy_content_handler (ContentHandler *contentHandler) |
void | processingInstruction (ContentHandler *content_handler, const char *target, const char *data) |
void | startElement (ContentHandler *content_handler, const char *tagName) |
void | attribute (ContentHandler *content_handler, const char *name, const char *value) |
void | characters (ContentHandler *content_handler, const char *data) |
void | endElement (ContentHandler *content_handler, const char *tagName) |
Runtime API for streaming documents to a simplified SAX ContentHandler
ContentHandlers are obtained from a RuntimeConfiguration by a call to createContentHandler()
The call grammar is as follows:
document: processingInstruction* tree;
tree: startElement(X) attribute* characters* forest characters* endElement(X) forest: tree*
void attribute | ( | ContentHandler * | content_handler, |
const char * | name, | ||
const char * | value | ||
) |
Function to append an attribute to the document
Calls to this function are allowed only immediately after calling startElement or attribute (this function)
contentHandler | The content handler |
name | The attribute name |
value | The attribute value |
void characters | ( | ContentHandler * | content_handler, |
const char * | data | ||
) |
Function to append character data to the document
Calls to this function are allowed only immediately after calling startElement, attribute or characters (this function)
contentHandler | The content handler |
data | The character data |
void destroy_content_handler | ( | ContentHandler * | contentHandler | ) |
Function to dispose of a ContentHandler
contentHandler | A content handler |
void endElement | ( | ContentHandler * | content_handler, |
const char * | tagName | ||
) |
Function to append an end element to the document
Calls to startElement and endElement can be nested and need to be balanced so that for every call to startElement for a particular tag name, a corresponding call with the same tag name to endElement is required.
contentHandler | The content handler |
tagName | The tag name |
void processingInstruction | ( | ContentHandler * | content_handler, |
const char * | target, | ||
const char * | data | ||
) |
Function to append a processing instruction to the document
contentHandler | The content handler |
target | The processing instruction target |
data | The processing instruction data or 0. The data does not include any whitespace separating it from the target |
void startElement | ( | ContentHandler * | content_handler, |
const char * | tagName | ||
) |
Function to append a start element to the document
Calls to startElement and endElement can be nested and need to be balanced so that for every call to startElement for a particular tag name, a corresponding call with the same tag name to endElement is required.
contentHandler | The content handler |
tagName | The tag name |