class DECLSPEC XMLIO_Document |
Base class for document handling (see XML Spec [1]).
![]() | characters Buffer to store all incoming characters. |
![]() | current_element Current element, which gets all characters and start tag events for further processing. |
![]() | element_stack Stack with all elements. |
![]() | indent Blanks ('current_indent' many). |
![]() | XMLIO_Document () Constructor. |
![]() | ~XMLIO_Document () Destructor. |
![]() | toString () const Returns name of class. |
![]() | changeIndent (int change) Changes current indentation by given value. |
![]() | setIndent (int new_indent) Sets current indentation to given value. |
![]() | close () Closes file and clears stack. |
![]() | flush () const Flushes file stream. |
![]() | open (const XMLIO_string& filename, const XMLIO_string& access_mode) Opens XML file with given filename. |
![]() | open (FILE* file, const XMLIO_string& my_access_mode) Uses given C stream for input or output of document. |
![]() | readDocument () Reads opened file and passes events to appropriate XML_Element objects. |
![]() | write (const XMLIO_strstream& char_data) const Writes character data (XML Spec [14]) from a strstream to file. |
![]() | write (const XMLIO_string& char_data) const Writes character data (XML Spec [14]) from a string to file. |
![]() | write (const char* text) const Writes character data (XML Spec [14]) to file. |
![]() | writef (const char* templ, ...) const Writes character data (XML Spec [14]) to file and behaves like fprintf. |
![]() | writeEndl () const Writes \n character and flushes buffer. |
![]() | writeEndlIndent () const Writes \n character, flushes buffer and writes indentation of the following line. |
![]() | writeElement (XMLIO_Element* element) Writes an element (XML Spec [39]). |
![]() | writeComment (const char* templ, ... ) const Writes a comment to file. |
![]() | writeCDSect (const XMLIO_string& CDSect) const Writes a character data section to file. |
![]() | writeIndent () const Writes indentation. |
![]() | writeEndTag (const XMLIO_string& tag) const Writes '</tagName>' to file (XML Spec [42]). |
![]() | writeStartTag (const XMLIO_string& tag) const Writes '<tagName>' to file (XML Spec [40]). |
![]() | writeStartTag (const XMLIO_string& tag, const XMLIO_Attributes& attributes) const Writes '<tagName attr1="key1" attr2="key2" . |
![]() | xml_filename Name of opened file. |
![]() | xml_file XML file stream. |
![]() | access_mode Access mode. |
![]() | xml_file_type Type of opened file. |
![]() | current_indent Current number of blanks for indentation. |
![]() | indent_block Memory chunk with blanks and trailing \0. |
![]() | writeAttribute (const XMLIO_string& key, const XMLIO_string& value) const Writes 'attr="key"' to file (XML Spec [41]). |
![]() | writeAttributes (const XMLIO_Attributes& attributes) const Writes 'attr1="key1" attr2="key2" . |
![]() | writeEmptyElement (const XMLIO_string& tag) const Writes '<tagName/>' to file (XML Spec [44]). |
![]() | writeEmptyElement (const XMLIO_string& tag, const XMLIO_Attributes& attributes) const Writes '<tagName attr1="key1" attr2="key2" . |
![]() | XMLIO_AccessMode READ: File opened for reading. |
![]() | XMLIO_FileType File types which can be processed by xmlio. |
Base class for document handling (see XML Spec [1]). This is not the root element, the root element should be instatiated in XMLIO_startTag The prolog is not yet fully supported.
Alphabetic index HTML hierarchy of classes or Java