Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Phx::XmlDocument Class Reference

The xmlDocument class has the xmlheding attributes and the rootNode. More...

#include <PhxXml.h>

List of all members.

Public Member Functions

 XmlDocument (XmlNode *rootNode)
 Constuctor creates a new XmlDocument and sets the root node.
 XmlDocument (const String &xmlData)
 Creates a DOM tree from the string.
 XmlDocument ()
 Default constuctor creates a new XmlDocument.
void xmlString (const String &xmlData)
 rebuild XMLNode from text given in xmlData.
String xmlString ()
void setRootNode (XmlNode *rootNode)
 Sets the root node.
XmlNodegetRootNode ()
String getVersion ()
void setVersion (const String &version)
String getEncoding ()
 Can return NULL_STRING if value not preressent.
void setEncoding (const String &encoding)
 Same as setAttribute("encoding", encoding);.
String getStandalone ()
 Can return NULL_STRING if value not preressent.
void setStandalone (const String &standalone)
 Same as setAttribute("standalone", standalone);.
String getAttribute (const String &attribute)
 Can return NULL_STRING if value not preressent.
void setAttribute (const String &attribute, const String &value)
 Creates a new if attributes don't exists else updates with new value.
bool hasAttribute ()


Detailed Description

The xmlDocument class has the xmlheding attributes and the rootNode.


Constructor & Destructor Documentation

Phx::XmlDocument::XmlDocument XmlNode rootNode  )  [inline]
 

Constuctor creates a new XmlDocument and sets the root node.

Parameters:
rootNode The root node.

Phx::XmlDocument::XmlDocument const String &  xmlData  ) 
 

Creates a DOM tree from the string.

Todo:
Not implemented yet


Member Function Documentation

String Phx::XmlDocument::getAttribute const String &  attribute  ) 
 

Can return NULL_STRING if value not preressent.

Parameters:
attribute name of the attribute to get.
Returns:
value of the named attribute or NULL_STRING

String Phx::XmlDocument::getVersion  ) 
 

Can return NULL_STRING if value not preressent.

void Phx::XmlDocument::setAttribute const String &  attribute,
const String &  value
 

Creates a new if attributes don't exists else updates with new value.

Parameters:
attribute name of the attribute.
value new value for teh named attribute.

void Phx::XmlDocument::setEncoding const String &  encoding  ) 
 

Same as setAttribute("encoding", encoding);.

Parameters:
encoding new Encoding attribute for the XML document.

void Phx::XmlDocument::setRootNode XmlNode rootNode  )  [inline]
 

Sets the root node.

Parameters:
rootNode new root node.

void Phx::XmlDocument::setStandalone const String &  standalone  ) 
 

Same as setAttribute("standalone", standalone);.

Parameters:
standalone new standalone attribute for the XML document.

void Phx::XmlDocument::setVersion const String &  version  ) 
 

Same as setAttribute("version",version);

Parameters:
version new Version attribute for the XML document.

String Phx::XmlDocument::xmlString  ) 
 

Returns:
the XML document as a text String

void Phx::XmlDocument::xmlString const String &  xmlData  ) 
 

rebuild XMLNode from text given in xmlData.

Todo:
Not implemented yet, DEBUG version builds a simple DOM tree.


The documentation for this class was generated from the following file:
Generated on Wed Dec 21 22:05:39 2005 for Phoenix OSFS by  doxygen 1.4.2