ubit::UXmlDoc Class Reference

XML Doc. More...

#include <udom.hpp>

Inheritance diagram for ubit::UXmlDoc:

ubit::UDoc ubit::UVbox ubit::UBox ubit::UGroup ubit::UControl ubit::UBrick ubit::UObject List of all members.

Public Member Functions

 UXmlDoc (const UStr &pathname)
virtual unsigned short getNodeType () const
 returns the XML node type.
virtual const UStr * getNodeName () const
 return the XML node name.
virtual const UStr * getNodeValue () const
 return the XML node value.
virtual UGroup * getDocumentElement ()
virtual const UGroup * getDocumentElement () const
virtual const UXmlDocType * getDoctype () const
virtual const UStr * getXmlVersion () const
virtual const UStr * getXmlEncoding () const
virtual bool isXmlStandalone () const
virtual UProp * createAttribute (const UStr &name)
virtual UGroup * createElement (const UStr &name)
virtual UStr * createTextNode (const UStr &data)
virtual UComment * createComment (const UStr &data)
virtual UCDATASection * createCDATASection (const UStr &data)
virtual UProcessingInstruction * createProcessingInstruction (const UStr &target, const UStr &data)
virtual void initElement (UGroup *)
virtual void setClassStyle (UGroup *, const UStr *name, const UStr *value)
virtual void setIdStyle (UGroup *, const UStr *name, const UStr *value)
virtual void addGrammar (const UXmlGrammar &)
 adds a grammar to the document.
virtual void print (std::ostream &fout)
 prints the XML tree on this stream (eg. std::cout).
virtual void print (UStr &buffer)
 prints the XML tree on this buffer.
virtual const UDocAttachments * getAttachments () const
 returns the list of attachments.
virtual int loadAttachments (bool reload=false)
 loads the attachments.
virtual bool loadAttachment (UDocAttachment *, bool reload=false)
 loads this attachment.
virtual void addAttachment (UDocAttachment *)
 impl.
const UStyleSheet & getStyleSheet () const
UStyleSheet & getStyleSheet ()
 impl.

Protected Member Functions

void constructs ()
virtual void setClassIdStyle (UGroup *, const UStr *name, const UStr *value)

Protected Attributes

uptr< UStr > xml_version
uptr< UStr > xml_encoding
bool xml_standalone
UXmlDocType * doc_type
UXmlGrammars * grammars
UStyleSheet doc_stylesheet
UGroup * doc_elem
UDocAttachments attachments

Static Protected Attributes

static const UStr NodeName

Friends

class UXmlParser

Detailed Description

XML Doc.


Member Function Documentation

int ubit::UXmlDoc::loadAttachments ( bool  reload = false  )  [virtual]

loads the attachments.

Reimplemented from ubit::UDoc.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:48 2007 for Ubit by  doxygen 1.4.7