Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

util::xml::Document Class Reference

#include <XMLDocument.h>

Inheritance diagram for util::xml::Document:

util::xml::Node util::Object List of all members.

Detailed Description

Document is the root node for XML documents.


Public Methods

 Document ()
 Create a new document node.

 Document (Element *root)
 Create a new document node with the given root element.

void printOut (std::ostream &out) const throw (util::io::IOException&)
 Print the contents of a node to a stream.


Public Attributes

ElementdocumentElement
 A pointer to the root element of this document.


Member Function Documentation

void util::xml::Document::printOut std::ostream &    out const throw (util::io::IOException&) [virtual]
 

Print the contents of a node to a stream.

The output of this method is well-formed XML. Calling the printOut method of a Document object produces a well-formed XML document. All other nodes produce a well-formed XML document fraction.

Exceptions:
IOException  & if something goes wrong while writing

Implements util::xml::Node.


The documentation for this class was generated from the following files:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.