/usr/include/root/TXMLNode.h is in libroot-io-xmlparser-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | // @(#)root/xmlparser:$Id$
// Author: Jose Lo 12/4/2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TXMLNode
#define ROOT_TXMLNode
//////////////////////////////////////////////////////////////////////////
// //
// 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. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TList;
struct _xmlNode;
class TXMLNode : public TObject {
private:
TXMLNode(const TXMLNode&); // Not implemented
TXMLNode& operator=(const TXMLNode&); // Not implemented
_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:
// This enum is based on libxml tree Enum xmlElementType
enum EXMLElementType {
kXMLElementNode = 1,
kXMLAttributeNode = 2,
kXMLTextNode = 3,
kXMLCommentNode = 8
};
TXMLNode(_xmlNode *node, TXMLNode* parent=0, TXMLNode* previous=0);
virtual ~TXMLNode();
EXMLElementType GetNodeType() const;
const char *GetNodeName() const;
TXMLNode *GetChildren();
TXMLNode *GetParent() const;
TXMLNode *GetNextNode();
TXMLNode *GetPreviousNode() const;
const char *GetContent() const;
const char *GetText() const;
TList *GetAttributes();
Bool_t HasChildren() const;
Bool_t HasNextNode() const;
Bool_t HasParent() const;
Bool_t HasPreviousNode() const;
Bool_t HasAttributes() const;
const char *GetNamespaceHref() const;
const char *GetNamespacePrefix() const;
ClassDef(TXMLNode,0); // XML node under DOM tree
};
#endif
|