27#include <libxml/tree.h>
67 return (
const char *)
fXMLNode->name;
99 return (
const char *)
fXMLNode->content;
116 xmlAttr *attr_node =
fXMLNode->properties;
117 for (; attr_node; attr_node = attr_node->next) {
119 (
const char *) attr_node->children->content));
156 if (
fXMLNode->children->type == XML_TEXT_NODE)
157 return (
const char *)
fXMLNode->children->content;
208 return (
const char *)
fXMLNode->ns->href;
219 return (
const char *)
fXMLNode->ns->prefix;
bool Bool_t
Boolean (0=false, 1=true) (bool).
TXMLAttribute is the attribute of an Element.
TList * fAttrList
List of Attributes.
TList * GetAttributes()
Returns a list of node's attribute if any, returns 0 if no attribute.
TXMLNode * fPreviousNode
Previous sibling node.
_xmlNode * fXMLNode
libxml node
~TXMLNode() override
Destructor.
Bool_t HasChildren() const
Returns true if node has children.
Bool_t HasParent() const
Returns true if node has parent.
const char * GetText() const
Returns the content of a Text node if node is a TextNode, 0 otherwise.
const char * GetContent() const
Returns the content if any, or 0.
EXMLElementType
This enum is based on libxml tree Enum xmlElementType.
TXMLNode * fNextNode
Next sibling node.
const char * GetNamespaceHref() const
Returns the URL for the namespace, or 0 if no namespace.
const char * GetNamespacePrefix() const
Returns prefix for the namespace, or 0 if no namespace.
TXMLNode * fParent
Parent node.
TXMLNode * GetNextNode()
Returns the next sibling XMLNode in the DOM tree, if any return 0 if no next node.
Bool_t HasPreviousNode() const
Returns true if has previous node.
TXMLNode * GetParent() const
Returns the node's parent if any, returns 0 if no parent.
TXMLNode(const TXMLNode &)=delete
TXMLNode * GetPreviousNode() const
Returns the previous sibling XMLNode in the DOM tree, if any return 0 if no previous node.
TXMLNode * GetChildren()
Returns the node's child if any, returns 0 if no child.
TXMLNode * fChildren
Children node.
const char * GetNodeName() const
Returns the node's name.
Bool_t HasNextNode() const
Returns true if has next node.
Bool_t HasAttributes() const
Returns true if Element node has attribute.
EXMLElementType GetNodeType() const
Returns the node's type.