Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Default implementation for XML documents. More...
#include <ilog/xml.h>
Public Member Functions | |
virtual void | addNode (IlXmlNodeI *) |
Adds a new node. | |
virtual IlXmlNodeIteratorI * | createNodesIterator () const |
Creates an iterator for the nodes of this document. | |
virtual void | empty () |
Empties this document. | |
IlXmlElement * | getRootElement () const |
Gets the root element of this document. | |
virtual const char * | getVersion () const |
Gets the version of the document. | |
Protected Member Functions | |
virtual void | storeVersion (char *version) |
Stores the XML version. |
Default implementation for XML documents.
Library: ilog
This class can create, parse or output entire XML documents.
IlXmlDocument
is a predefined type, derived from IlXmlDocumentI
, that implements all the code that builds and holds a complete XML document that can be read from a stream.
You can use an XML document if you need a ready-to-use, efficient way of reading XML data that do not need streaming.
virtual void IlXmlDocument::addNode | ( | IlXmlNodeI * | node | ) | [virtual] |
Adds a new node.
This method is called when the XML parser creates a top-level node. It can be an element (then it is unique, and considered as the root element of the document), a comment or a processing instruction.
node | A pointer to the new node. |
Implements IlXmlDocumentI.
virtual IlXmlNodeIteratorI* IlXmlDocument::createNodesIterator | ( | ) | const [virtual] |
Creates an iterator for the nodes of this document.
Reimplemented from IlXmlDocumentI.
virtual void IlXmlDocument::empty | ( | ) | [virtual] |
Empties this document.
Removes and destroys all the nodes stored in this document. The default implementation does nothing.
Reimplemented from IlXmlDocumentI.
IlXmlElement* IlXmlDocument::getRootElement | ( | ) | const |
Gets the root element of this document.
An XML document may have one and only one root element, that may store several child nodes.
Element
node type). virtual const char* IlXmlDocument::getVersion | ( | ) | const [virtual] |
Gets the version of the document.
The default implementation returns the string "1.0"
.
storeVersion
. Reimplemented from IlXmlDocumentI.
virtual void IlXmlDocument::storeVersion | ( | char * | version | ) | [protected, virtual] |
Stores the XML version.
The default implementation deletes the string and does not store it anywhere.
version | The new version of this document. The string is stored as is and is not copied by the document. |
Reimplemented from IlXmlDocumentI.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.