library: libXMLParser
#include "TXMLNode.h"

TXMLNode


class description - header file - source file - inheritance tree (.pdf)

class TXMLNode : public TObject

Inheritance Chart:
TObject
<-
TXMLNode

    public:
TXMLNode(_xmlNode* node, TXMLNode* parent = 0, TXMLNode* previous = 0) TXMLNode(const TXMLNode&) virtual ~TXMLNode() static TClass* Class() TList* GetAttributes() TXMLNode* GetChildren() const char* GetContent() const const char* GetNamespaceHref() const const char* GetNamespacePrefix() const TXMLNode* GetNextNode() const char* GetNodeName() const TXMLNode::EXMLElementType GetNodeType() const TXMLNode* GetParent() const TXMLNode* GetPreviousNode() const const char* GetText() const Bool_t HasAttributes() const Bool_t HasChildren() const Bool_t HasNextNode() const Bool_t HasParent() const Bool_t HasPreviousNode() const virtual TClass* IsA() const TXMLNode& operator=(const TXMLNode&) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
_xmlNode* fXMLNode libxml node TXMLNode* fParent Parent node TXMLNode* fChildren Children node TXMLNode* fNextNode Next sibling node TXMLNode* fPreviousNode Previous sibling node TList* fAttrList List of Attributes public:
static const TXMLNode::EXMLElementType kXMLElementNode static const TXMLNode::EXMLElementType kXMLAttributeNode static const TXMLNode::EXMLElementType kXMLTextNode static const TXMLNode::EXMLElementType kXMLCommentNode

Class Description

                                                                      
 TXMLNode                                                             
                                                                      
 TXMLNode contains a pointer to xmlNode, which is a node under the    
 DOM tree. A node can be an Element, an Attribute, a Text Node        
 or a Comment Node.                                                   
 One can navigate the DOM tree by accessing the siblings and          
 parent or child nodes. Also retriving the Attribute or the Text in   
 an Element node.                                                     
                                                                      

TXMLNode(xmlNode *node, TXMLNode *parent, TXMLNode *previous)
 TXMLNode constructor.
~TXMLNode()
 Destructor. It deletes the node's child, next sibling and the
 attribute list.
const char * GetNodeName()
 Returns the node's name.
TXMLNode * GetChildren()
 Returns the node's child if any, returns 0 if no child.
TXMLNode * GetParent()
 Returns the node's parent if any, returns 0 if no parent.
const char * GetContent()
 Returns the content if any, or 0.
TList * GetAttributes()
 Returns a list of node's attribute if any,
 returns 0 if no attribute.
TXMLNode * GetNextNode()
 Returns the next sibling XMLNode in the DOM tree, if any
 return 0 if no next node.
TXMLNode * GetPreviousNode()
 Returns the previous sibling XMLNode in the DOM tree, if any
 return 0 if no previous node
const char * GetText()
 Returns the content of a Text node if node is a TextNode, 0 otherwise.
Bool_t HasChildren()
 Returns true if node has children.
Bool_t HasNextNode()
 Returns true if has next node.
Bool_t HasParent()
 Returns true if node has parent.
Bool_t HasPreviousNode()
 Returns true if has previous node.
Bool_t HasAttributes()
 Returns true if Element node has attribute.
const char * GetNamespaceHref()
 Returns the URL for the namespace, or 0 if no namespace.
const char * GetNamespacePrefix()
 Returns prefix for the namespace, or 0 if no namespace.
TXMLNode(_xmlNode *node, TXMLNode* parent=0, TXMLNode* previous=0)
EXMLElementType GetNodeType()

Author: Jose Lo 12/4/2005
Last update: root/xmlparser:$Name: $:$Id: TXMLNode.cxx,v 1.3 2006/04/20 14:36:48 rdm Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.