IXmlNode

IXmlNode class Notes: Never use IXmlNode directly instead use reference counted XmlNodeRef.

Class Hierarchy
C++
class IXmlNode;
File

IXml.h

See Also
IXmlNode::m_nRefCount Data Member
C++
int m_nRefCount;
IXmlNode::~IXmlNode Destructor
C++
virtual ~IXmlNode();
IXmlNode::addChild Method

Adds new child node.

C++
virtual void addChild(const XmlNodeRef & node) = 0;
IXmlNode::AddRef Method

Reference counting.

C++
virtual void AddRef();
IXmlNode::clone Method

Deep clone of this and all child xml nodes.

C++
virtual XmlNodeRef clone() = 0;
IXmlNode::copyAttributes Method

Copies attributes to this node from a given node.

C++
virtual void copyAttributes(XmlNodeRef fromNode) = 0;
IXmlNode::createNode Method

Creates new XML node.

C++
virtual XmlNodeRef createNode(const char * tag) = 0;
IXmlNode::delAttr Method

Deletes attribute.

C++
virtual void delAttr(const char* key) = 0;
IXmlNode::DeleteThis Method
C++
virtual void DeleteThis() = 0;
IXmlNode::findChild Method

Finds node with specified tag.

C++
virtual XmlNodeRef findChild(const char * tag) const = 0;
IXmlNode::getAttr Method (char *)

Gets XML Node attribute for specified key.

C++
virtual const char* getAttr(const char * key) const = 0;
IXmlNode::getAttr Method (char *, Ang3&)
C++
virtual bool getAttr(const char * key, Ang3& value) const = 0;
IXmlNode::getAttr Method (char *, ColorB &)
C++
virtual bool getAttr(const char * key, ColorB & value) const = 0;
IXmlNode::getAttr Method (char *, Quat &)
C++
virtual bool getAttr(const char * key, Quat & value) const = 0;
IXmlNode::getAttr Method (char *, Vec2&)
C++
virtual bool getAttr(const char * key, Vec2& value) const = 0;
IXmlNode::getAttr Method (char *, Vec2d&)
C++
virtual bool getAttr(const char * key, Vec2d& value) const = 0;
IXmlNode::getAttr Method (char *, Vec3&)
C++
virtual bool getAttr(const char * key, Vec3& value) const = 0;
IXmlNode::getAttr Method (char *, Vec3d&)
C++
virtual bool getAttr(const char * key, Vec3d& value) const = 0;
IXmlNode::getAttr Method (char *, Vec4&)
C++
virtual bool getAttr(const char * key, Vec4& value) const = 0;
IXmlNode::getAttr Method (char *, XmlString &)
C++
virtual bool getAttr(const char * key, XmlString & value) const = 0;
IXmlNode::getAttr Method (char *, bool &)
C++
virtual bool getAttr(const char * key, bool & value) const = 0;
IXmlNode::getAttr Method (char *, char &)
C++
bool getAttr(const char * key, char & value) const;
IXmlNode::getAttr Method (char *, char **)

Gets XML Node attribute for specified key.

C++
virtual bool getAttr(const char * key, const char ** value) const = 0;
Returns

True if the attribute exists, false otherwise.

IXmlNode::getAttr Method (char *, double &)
C++
virtual bool getAttr(const char * key, double & value) const = 0;
IXmlNode::getAttr Method (char *, float &)
C++
virtual bool getAttr(const char * key, float & value) const = 0;
IXmlNode::getAttr Method (char *, int &)

Gets attribute value of node.

C++
virtual bool getAttr(const char * key, int & value) const = 0;
IXmlNode::getAttr Method (char *, int64 &)
C++
virtual bool getAttr(const char * key, int64 & value) const = 0;
IXmlNode::getAttr Method (char *, short &)
C++
bool getAttr(const char * key, short & value) const;
IXmlNode::getAttr Method (char *, uint64 &, bool)
C++
virtual bool getAttr(const char * key, uint64 & value, bool useHexFormat = true) const = 0;
IXmlNode::getAttr Method (char *, unsigned char &)
C++
bool getAttr(const char * key, unsigned char & value) const;
IXmlNode::getAttr Method (char *, unsigned int &)
C++
virtual bool getAttr(const char * key, unsigned int & value) const = 0;
IXmlNode::getAttr Method (char *, unsigned short &)
C++
bool getAttr(const char * key, unsigned short & value) const;
IXmlNode::getAttributeByIndex Method

Returns attribute key and value by attribute index.

C++
virtual bool getAttributeByIndex(int index, const char ** key, const char ** value) = 0;
IXmlNode::getChild Method

Gets XML Node child nodes.

C++
virtual XmlNodeRef getChild(int i) const = 0;
IXmlNode::getChildCount Method

Gets number of child XML nodes.

C++
virtual int getChildCount() const = 0;
IXmlNode::getContent Method

Returns content of this node.

C++
virtual const char* getContent() const = 0;
IXmlNode::getLine Method

Returns line number for XML tag.

C++
virtual int getLine() const = 0;
IXmlNode::getNumAttributes Method

Gets XML Node attributes.

C++
virtual int getNumAttributes() const = 0;
IXmlNode::getParent Method

Gets parent XML node.

C++
virtual XmlNodeRef getParent() const = 0;
IXmlNode::GetRefCount Method
C++
virtual int GetRefCount() const;
IXmlNode::getTag Method

Gets XML node tag.

C++
virtual const char * getTag() const = 0;
IXmlNode::getXML Method

Returns XML of this node and sub nodes.

C++
virtual XmlString getXML(int level = 0) const = 0;
IXmlNode::getXMLData Method

Returns XML of this node and sub nodes. Notes: IXmlStringData pointer must be release when string is not needed anymore.

C++
virtual IXmlStringData* getXMLData(int nReserveMem = 0) const = 0;
See Also
IXmlNode::haveAttr Method

Checks if attributes with specified key exist.

C++
virtual bool haveAttr(const char * key) const = 0;
IXmlNode::isTag Method

Returns true if a given tag equal to node tag.

C++
virtual bool isTag(const char * tag) const = 0;
IXmlNode::newChild Method

Creates new xml node and add it to childs list.

C++
virtual XmlNodeRef newChild(const char * tagName) = 0;
IXmlNode::Release Method
C++
virtual void Release();
Description

Notes: When ref count reach zero XML node dies.

IXmlNode::removeAllAttributes Method

Removes all node attributes.

C++
virtual void removeAllAttributes() = 0;
IXmlNode::removeAllChilds Method

Removes all child nodes.

C++
virtual void removeAllChilds() = 0;
IXmlNode::removeChild Method

Removes child node.

C++
virtual void removeChild(const XmlNodeRef & node) = 0;
IXmlNode::saveToFile Method
C++
virtual bool saveToFile(const char * fileName) = 0;
IXmlNode::setAttr Method (char*, Ang3&)
C++
virtual void setAttr(const char* key, const Ang3& value) = 0;
IXmlNode::setAttr Method (char*, Quat &)
C++
virtual void setAttr(const char* key, const Quat & value) = 0;
IXmlNode::setAttr Method (char*, Vec2&)
C++
virtual void setAttr(const char* key, const Vec2& value) = 0;
IXmlNode::setAttr Method (char*, Vec2d&)
C++
virtual void setAttr(const char* key, const Vec2d& value) = 0;
IXmlNode::setAttr Method (char*, Vec3&)
C++
virtual void setAttr(const char* key, const Vec3& value) = 0;
IXmlNode::setAttr Method (char*, Vec3d&)
C++
virtual void setAttr(const char* key, const Vec3d& value) = 0;
IXmlNode::setAttr Method (char*, Vec4&)
C++
virtual void setAttr(const char* key, const Vec4& value) = 0;
IXmlNode::setAttr Method (char*, char*)

Sets new XML Node attribute (or override attribute with same key).

C++
virtual void setAttr(const char* key, const char* value) = 0;
IXmlNode::setAttr Method (char*, double)
C++
virtual void setAttr(const char* key, double value) = 0;
IXmlNode::setAttr Method (char*, float)
C++
virtual void setAttr(const char* key, float value) = 0;
IXmlNode::setAttr Method (char*, int)
C++
virtual void setAttr(const char* key, int value) = 0;
IXmlNode::setAttr Method (char*, int64)
C++
virtual void setAttr(const char* key, int64 value) = 0;
IXmlNode::setAttr Method (char*, uint64, bool)
C++
virtual void setAttr(const char* key, uint64 value, bool useHexFormat = true) = 0;
IXmlNode::setAttr Method (char*, unsigned int)
C++
virtual void setAttr(const char* key, unsigned int value) = 0;
IXmlNode::setContent Method

Sets content of this node.

C++
virtual void setContent(const char * str) = 0;
IXmlNode::setLine Method

Set line number in xml.

C++
virtual void setLine(int line) = 0;
IXmlNode::setTag Method

Sets XML node tag.

C++
virtual void setTag(const char * tag) = 0;
friend class XmlNodeRef Friend

Lets be friendly to him.

C++
friend class XmlNodeRef;