class DECLSPEC XMLIO_Element |
Most important class to read and write from an XML file.
XMLIO_string | tag Tag of element. |
XMLIO_Attributes | attributes Keeps attributes of element. |
XMLIO_IndentationType | xmlio_indent_type Indentation tyle of element. |
XMLIO_Element () Constructor. | |
XMLIO_Element (const XMLIO_string& my_tag, XMLIO_Attributes &my_attributes) Constructor. | |
virtual | ~XMLIO_Element () Destructor. |
virtual XMLIO_Element* | XMLIO_startTag (const XMLIO_string& tag, XMLIO_Attributes &attrs) Called by XMLIO_Document when a start tag is received. |
virtual void | XMLIO_endTag (const XMLIO_string& tag) Called by XMLIO_Document when a end tag is found. |
virtual void | XMLIO_getCharacters (const XMLIO_string& characters) All character data will be send to your element. |
virtual void | XMLIO_getComment (const XMLIO_string& comment) The comment characters are sent to the element (XML Spec [15]). |
virtual void | XMLIO_getProcessingInstruction (const XMLIO_string& target, const XMLIO_string& instructions) The process instruction is sent to the element (XML Spec [16]). |
virtual void | XMLIO_finishedReading () Called by XMLIO_Document when the end tag of this element has been found. |
virtual bool | XMLIO_remove () const Returns whether object should be deleted from memory by the XMLIO_Document when it is removed from the stack. |
virtual const int | XMLIO_writeContent (XMLIO_Document& doc) Writes the content (XML Spec[43]) of this element. |
virtual const XMLIO_string& | XMLIO_getName () const Returns the XML element's type of this element (as in XML Spec[40]). |
virtual XMLIO_Attributes& | XMLIO_getAttributes () Returns the attributes of this element (XML Spec [40], [41]). |
virtual bool | XMLIO_isEmpty () const Returns whether this element is empty (XML Spec [44]). |
virtual const char* | toString () const Returns name of class. |
virtual void | print () const |
Most important class to read and write from an XML file. It represents an XML element in the sense of XML spec [39] and any object, that can be composed out of the data of an XML element, should be derived from this class. You will have to overload some of the virtual functions to handle the incoming data yourself.
In order to provide specialized output support, you should write code to the functionsOnly if XMLIO_isEmpty() returns false, the XMLIO_write method is called.
- const string& XMLIO_getName() const
- XMLIO_Attributes& XMLIO_getAttributes()
- bool XMLIO_isEmpty()
- const int XMLIO_writeContent(const XMLIO_Document*)
Alphabetic index HTML hierarchy of classes or Java