A light-weight handle for manipulating nodes in DOM tree. More...
#include <node.h>
Public Types | |
typedef AttributeIterator | attribute_iterator |
An iterator for Attribute members on this Node. | |
typedef NodeIterator | iterator |
An iterator for child Nodes that will be easier for members of the std namespace to work with. | |
Public Member Functions | |
Node () | |
Default constructor. Constructs an empty node. | |
Node (NodeStruct *p) | |
Constructs node from internal pointer. More... | |
~Node () | |
Virtual deconstructor. | |
Attribute | AppendAttribute (const Char8 *Name) |
Creates an Attribute and puts it at the end of this Nodes attributes. More... | |
Attribute | AppendAttribute (const String &Name) |
Creates an Attribute and puts it at the end of this Nodes attributes. More... | |
Node | AppendChild (NodeType Type=NodeElement) |
Creates a Node and makes it a child of this one. More... | |
Node | AppendChild (const Char8 *Name) |
Creates an element Node as a child of this Node, with the given name. More... | |
Node | AppendChild (const String &Name) |
Creates an element Node as a child of this Node, with the given name. More... | |
Attribute | AppendCopy (const Attribute &proto) |
Copies an Attribute and puts the copy at the end of this Nodes attributes. More... | |
Node | AppendCopy (const Node &proto) |
Copies a Node and puts the copy at the end of the list of this Nodes Childrem. More... | |
ObjectRange< AttributeIterator > | attributes () const |
A range of iterators for just the attributes of this node. More... | |
attribute_iterator | attributes_begin () const |
Get an Attribute iterator that references the first Attribute on this Node. More... | |
attribute_iterator | attributes_end () const |
Get an Attribute iterator that references the one past the last Attribute on this Node. More... | |
iterator | begin () const |
Get a Child node iterator that references the first child Node. More... | |
bool | Empty () const |
Is this storing anything at all? More... | |
iterator | end () const |
Get a Child node iterator that references one past the last child Node. More... | |
template<typename Predicate > | |
Attribute | FindAttribute (Predicate pred) const |
Search for an Attribute using a function to check each Attribute individually. More... | |
template<typename Predicate > | |
Node | FindChild (Predicate pred) const |
Search for an child ( only direct children ) Node using a function to check each Node individually. More... | |
Node | FindChildbyAttribute (const Char8 *Name, const Char8 *AttrName, const Char8 *AttrValue) const |
Find a Node by an Attribute it has. More... | |
Node | FindChildbyAttribute (const Char8 *AttrName, const Char8 *AttrValue) const |
Find a Node by an Attribute it has. More... | |
template<typename Predicate > | |
Node | FindNode (Predicate pred) const |
Search for any Node descended from this Node using a function to check each Node individually. More... | |
XPathNodeSet | FindNodes (const Char8 *query, XPathVariableSet *variables=0) const |
Select a group of nodes by evaluating an XPath query. More... | |
XPathNodeSet | FindNodes (const XPathQuery &query) const |
Select a group of nodes by evaluating an XPath query. More... | |
XPathNode | FindSingleNode (const Char8 *query, XPathVariableSet *variables=0) const |
Select single node by evaluating an XPath query. Returns first node from the resulting node set. More... | |
XPathNode | FindSingleNode (const XPathQuery &query) const |
Select single node by evaluating an XPath query. Returns first node from the resulting node set. More... | |
Node | FirstElementByPath (const Char8 *Path, Char8 delimiter= '/') const |
Search for a node by Path consisting of node names and . or .. elements. More... | |
Attribute | GetAttribute (const Char8 *Name) const |
Attempt to get an Attribute on this Node with a given name. More... | |
Node | GetChild (const Char8 *Name) const |
Attempt to get a child Node with a given name. More... | |
Node | GetChild (const String &Name) const |
Attempt to get a child Node with a given name. More... | |
ObjectRange< NodeIterator > | GetChildren () const |
Get an iterator range for this node's children nodes. More... | |
ObjectRange< NamedNodeIterator > | GetChildren (const Char8 *Name) const |
Get an iterator range for this a subset of this node's children nodes. More... | |
const Char8 * | GetChildValue () const |
Retrieve the value of this(or a child's) Nodes PCDATA child Node. More... | |
const Char8 * | GetChildValue (const Char8 *Name) const |
Get the PCDATA of a given child. The same a calling "GetChild(Name).ChildValue()". More... | |
Attribute | GetFirstAttribute () const |
Get the First Attribute in this Node. More... | |
Node | GetFirstChild () const |
Get the first child Node of this Node. More... | |
Attribute | GetLastAttribute () const |
Get the Last Attribute in this Node. More... | |
Node | GetLastChild () const |
Get the last child Node of this Node. More... | |
Node | GetNextSibling () const |
Attempt to retrieve the next sibling of this Node. More... | |
Node | GetNextSibling (const Char8 *Name) const |
Like GetNextSibling except that the return will be a null Node or have a matching name. More... | |
Node | GetParent () const |
Attempt to retrieve the parent of this Node. More... | |
Node | GetPreviousSibling () const |
Attempt to retrieve the prvious sibling of this Node. More... | |
Node | GetPreviousSibling (const Char8 *Name) const |
Like GetPreviousSibling except that the return will be a null Node or have a matching name. More... | |
Node | GetRoot () const |
Attempt to retrieve the root Node, or the most base Node containing this Node. More... | |
NodeText | GetText () const |
Get text object for the current node. More... | |
size_t | HashValue () const |
Get hash Value (unique for handles to the same object) More... | |
Attribute | InsertAttributeAfter (const Char8 *Name, const Attribute &attr) |
Creates an Attribute and puts it into the list of this Nodes attributes. More... | |
Attribute | InsertAttributeBefore (const Char8 *Name, const Attribute &attr) |
Creates an Attribute and puts it into the list of this Nodes attributes. More... | |
Node | InsertChildAfter (NodeType Type, const Node &node) |
Creates a Node and makes it a child of this one, and puts at the middle of the Child Nodes. More... | |
Node | InsertChildAfter (const Char8 *Name, const Node &node) |
Creates an element Node as a child of this Node, with the given name at the middle of the children. More... | |
Node | InsertChildBefore (NodeType Type, const Node &node) |
Creates a Node and makes it a child of this one, and puts at the middle of the Child Nodes. More... | |
Node | InsertChildBefore (const Char8 *Name, const Node &node) |
Creates an element Node as a child of this Node, with the given name at the middle of the children. More... | |
Attribute | InsertCopyAfter (const Attribute &proto, const Attribute &attr) |
Copies an Attribute and puts the copy into the list of this Nodes attributes. More... | |
Node | InsertCopyAfter (const Node &proto, const Node &node) |
Copies a Node and puts the copy in the middle the list of this Nodes Childrem. More... | |
Attribute | InsertCopyBefore (const Attribute &proto, const Attribute &attr) |
Copies an Attribute and puts the copy into the list of this Nodes attributes. More... | |
Node | InsertCopyBefore (const Node &proto, const Node &node) |
Copies a Node and puts the copy in the middle the list of this Nodes Childrem. More... | |
NodeStruct * | InternalObject () const |
Get internal pointer. More... | |
const Char8 * | Name () const |
ptrdiff_tGet the name of this Node. More... | |
ptrdiff_t | OffSetDebug () const |
Get node Offset in parsed file/string (in char_t units) for debugging purposes. More... | |
operator unspecified_bool_type () const | |
Used to convert this to a boolean value in a safe way. More... | |
bool | operator! () const |
Used to convert this node the opposite of it's normal boolean value. More... | |
bool | operator!= (const Node &r) const |
Compares the internal values to check inequality. More... | |
bool | operator< (const Node &r) const |
Compares the internal values to check for lessthanness. More... | |
bool | operator<= (const Node &r) const |
Compares the internal values to check for inequality and lessthanness. More... | |
bool | operator== (const Node &r) const |
Compares the internal values to check equality. More... | |
bool | operator> (const Node &r) const |
Compares the internal values to check for greaterthanness. More... | |
bool | operator>= (const Node &r) const |
Compares the internal values to check for inequality and greaterthanness. More... | |
String | Path (Char8 delimiter= '/') const |
Get the absolute path to this Node. More... | |
Attribute | PrependAttribute (const Char8 *Name) |
Creates an Attribute and puts it at the begining of this Nodes attributes. More... | |
Node | PrependChild (NodeType Type=NodeElement) |
Creates a Node and makes it a child of this one, and puts at the beginning of the Child Nodes. More... | |
Node | PrependChild (const Char8 *Name) |
Creates an element Node as a child of this Node, with the given name at the beginning of the children. More... | |
Node | PrependChild (const String &Name) |
Creates an element Node as a child of this Node, with the given name at the beginning of the children. More... | |
Attribute | PrependCopy (const Attribute &proto) |
Copies an Attribute and puts the copy at the beginning of this Nodes attributes. More... | |
Node | PrependCopy (const Node &proto) |
Copies a Node and puts the copy at the start of the list of this Nodes Childrem. More... | |
void | Print (Writer &WriterInstance, const Char8 *indent="\t", unsigned int flags=FormatDefault, Encoding DocumentEncoding=EncodingAuto, unsigned int Depth=0) const |
Output the XML document using a Writer. More... | |
void | Print (std::basic_ostream< char, std::char_traits< char > > &os, const Char8 *indent="\t", unsigned int flags=FormatDefault, Encoding DocumentEncoding=EncodingAuto, unsigned int Depth=0) const |
Output the XML document using a Output Stream. More... | |
void | Print (std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &os, const Char8 *indent="\t", unsigned int flags=FormatDefault, unsigned int Depth=0) const |
Output the XML document using a Output Stream. More... | |
bool | RemoveAttribute (const Attribute &a) |
Remove specified Attribute. More... | |
bool | RemoveAttribute (const Char8 *Name) |
Remove Attribute as specified by name. More... | |
bool | RemoveChild (const Node &n) |
Remove specified child element. More... | |
bool | RemoveChild (const Char8 *Name) |
Remove child element as specified by name. More... | |
bool | SetName (const Char8 *rhs) |
Set the name of . More... | |
bool | SetName (const String &rhs) |
Set the name of this object. More... | |
bool | SetValue (const Char8 *rhs) |
Set the value of this. More... | |
bool | Traverse (TreeWalker &walker) |
Perform sophisticated (or whatever) algorithms on this and all descendant Nodes in the XML tree. More... | |
NodeType | Type () const |
Identify what kind of Node this is. More... | |
const Char8 * | Value () const |
Get the Value of this Node. More... | |
Protected Types | |
typedef void(* | unspecified_bool_type) (Node ***) |
Used to prevent casting to numerical types acccidentally. More... | |
Protected Attributes | |
NodeStruct * | NodeData |
Stores pointers to the Node data and some metadata. More... | |
Friends | |
class | AttributeIterator |
class | NamedNodeIterator |
class | NodeIterator |
|
protected |
|
explicit |
Constructs node from internal pointer.
p | An internal node pointer. |
Creates an Attribute and puts it at the end of this Nodes attributes.
Name | The name of the New attribute to be created |
This attempts to create an Attribute and stick it at the end of the list of attribute on the current Node. This will fail and return an Empty Attribute if this Node is neither an Element nor a Declaration. This will fail and return an empty attribute if this Node is empty.
Node Mezzanine::XML::Node::AppendChild | ( | NodeType | Type = NodeElement | ) |
Creates an element Node as a child of this Node, with the given name.
Name | The name of the Node to be created. |
Calls Node::AppendChild(NodeType); using NodeElement as the NodeType.
Copies an Attribute and puts the copy at the end of this Nodes attributes.
proto | The attribute to be copied. |
This attempts to create a copy of an attribute Attribute and stick it at the end of the list of attribute on the current Node. This will fail and return an Empty Attribute if this Node is neither an Element nor a Declaration. This will fail and return an empty attribute if this Node is empty.
ObjectRange<AttributeIterator> Mezzanine::XML::Node::attributes | ( | ) | const |
A range of iterators for just the attributes of this node.
attribute_iterator Mezzanine::XML::Node::attributes_begin | ( | ) | const |
attribute_iterator Mezzanine::XML::Node::attributes_end | ( | ) | const |
iterator Mezzanine::XML::Node::begin | ( | ) | const |
bool Mezzanine::XML::Node::Empty | ( | ) | const |
Is this storing anything at all?
iterator Mezzanine::XML::Node::end | ( | ) | const |
|
inline |
Search for an Attribute using a function to check each Attribute individually.
pred | a pointer to a function that accepts an Attribute, and returns bool. |
This iterates through each Attribute on this node, from begining to end and calls the Predicate function passing an Attribute to it. If the Predicate returns true the Node it was just passed is returned. If Precdicate never returns true, it is called on every Node and a blank Node is returned. The Predicate is never called with a null value.
|
inline |
Search for an child ( only direct children ) Node using a function to check each Node individually.
pred | a pointer to a function that accepts an Node, and returns bool. |
This iterates through all immediate children of this Node and calls the Predicate function passing a Node to it. If the Predicate returns true the Node it was just passed is returned. If Predicate never returns true, it is called on every Node and a blank Node is returned. The Predicate is never called with a null value.
Node Mezzanine::XML::Node::FindChildbyAttribute | ( | const Char8 * | Name, |
const Char8 * | AttrName, | ||
const Char8 * | AttrValue | ||
) | const |
Find a Node by an Attribute it has.
Name | The name of the matching Node. |
AttrName | The name of the matching Attribute. |
AttrValue | The value of the matching Attribute. |
Any Null pointers instead of character arrays passed in will cause undefined behavior. All Matching is Case sensitive.
|
inline |
Search for any Node descended from this Node using a function to check each Node individually.
pred | a pointer to a function that accepts an Node, and returns bool. |
This iterates through all children of this Node, and their children ( and so on), and calls the Predicate function passing each Node to it. This iterates through all Nodes using a depth first algorithm. If the Predicate returns true the Node it was just passed is returned. If Predicate never returns true, it is called on every Node and a blank Node is returned. The Predicate is never called with a null value.
XPathNodeSet Mezzanine::XML::Node::FindNodes | ( | const Char8 * | query, |
XPathVariableSet * | variables = 0 |
||
) | const |
Select a group of nodes by evaluating an XPath query.
query | The XPath query as a c-string to be evaluated. |
variables | undocumented. |
XPathNodeSet Mezzanine::XML::Node::FindNodes | ( | const XPathQuery & | query | ) | const |
Select a group of nodes by evaluating an XPath query.
query | The XPath query XPathQuery class instance. |
query | The XPath query XPathQuery class instance. |
XPathNode Mezzanine::XML::Node::FindSingleNode | ( | const Char8 * | query, |
XPathVariableSet * | variables = 0 |
||
) | const |
Select single node by evaluating an XPath query. Returns first node from the resulting node set.
query | The XPath query as a c-string to be evaluated. |
variables | undocumented. |
XPathNode Mezzanine::XML::Node::FindSingleNode | ( | const XPathQuery & | query | ) | const |
Select single node by evaluating an XPath query. Returns first node from the resulting node set.
query | The XPath query XPathQuery class instance. |
ObjectRange<NodeIterator> Mezzanine::XML::Node::GetChildren | ( | ) | const |
Get an iterator range for this node's children nodes.
ObjectRange<NamedNodeIterator> Mezzanine::XML::Node::GetChildren | ( | const Char8 * | Name | ) | const |
Get an iterator range for this a subset of this node's children nodes.
Name | All members of the returned range with have this for a name. |
const Char8* Mezzanine::XML::Node::GetChildValue | ( | ) | const |
Retrieve the value of this(or a child's) Nodes PCDATA child Node.
If this node represents "<node>Some text in the PCDATA field, that is actually represent by a node</node>", then this would return "Some text in the PCDATA field, that is actually represent by a node". This will iterate through child Nodes from until it finds a PCDATA node or fails
Get the PCDATA of a given child. The same a calling "GetChild(Name).ChildValue()".
Name | The Name of the desired child node. |
Attribute Mezzanine::XML::Node::GetFirstAttribute | ( | ) | const |
Node Mezzanine::XML::Node::GetFirstChild | ( | ) | const |
Attribute Mezzanine::XML::Node::GetLastAttribute | ( | ) | const |
Node Mezzanine::XML::Node::GetLastChild | ( | ) | const |
Node Mezzanine::XML::Node::GetNextSibling | ( | ) | const |
Like GetNextSibling except that the return will be a null Node or have a matching name.
Name | if possible this will return the next sibling with this name. |
Node Mezzanine::XML::Node::GetParent | ( | ) | const |
Node Mezzanine::XML::Node::GetPreviousSibling | ( | ) | const |
Like GetPreviousSibling except that the return will be a null Node or have a matching name.
Name | if possible this will return the previous sibling with this name. |
Node Mezzanine::XML::Node::GetRoot | ( | ) | const |
NodeText Mezzanine::XML::Node::GetText | ( | ) | const |
Get text object for the current node.
size_t Mezzanine::XML::Node::HashValue | ( | ) | const |
Get hash Value (unique for handles to the same object)
Creates an Attribute and puts it into the list of this Nodes attributes.
Name | The name of the New attribute to be created |
attr | An Attribute that represents an Attribute on this Node, and is just before where you want the new Attribute. |
This attempts to create an Attribute and stick it in the list of attributes, Just after another Attribute, on the current Node. This will fail and return an Empty Attribute if this Node is neither an Element nor a Declaration. This will fail and return an empty attribute if this Node is empty.
Attribute Mezzanine::XML::Node::InsertAttributeBefore | ( | const Char8 * | Name, |
const Attribute & | attr | ||
) |
Creates an Attribute and puts it into the list of this Nodes attributes.
Name | The name of the New attribute to be created |
attr | An Attribute that represents an Attribute on this Node, and is just after where you want the new Attribute. |
This attempts to create an Attribute and stick it in the list of attributes, Just before another Attribute, on the current Node. This will fail and return an Empty Attribute if this Node is neither an Element nor a Declaration. This will fail and return an empty attribute if this Node is empty.
Creates a Node and makes it a child of this one, and puts at the middle of the Child Nodes.
Type | The NodeType of the Node to be added, just before another specific node. |
node | The specific node to add the new one before. |
Copies an Attribute and puts the copy into the list of this Nodes attributes.
proto | The attribute to be copied. |
attr | An Attribute that represents an Attribute on this Node, and is just before where you want the new copy of proto. |
This attempts to create a copy of an attribute Attribute and stick it in the middle of the list of attributes, just after a selected attribute, on the current Node. This will fail and return an Empty Attribute if this Node is neither an Element nor a Declaration. This will fail and return an empty attribute if this Node is empty.
Attribute Mezzanine::XML::Node::InsertCopyBefore | ( | const Attribute & | proto, |
const Attribute & | attr | ||
) |
Copies an Attribute and puts the copy into the list of this Nodes attributes.
proto | The attribute to be copied. |
attr | An Attribute that represents an Attribute on this Node, and is just after where you want the new copy of proto. |
This attempts to create a copy of an attribute Attribute and stick it in the middle of the list of attributes, just before a selected attribute, on the current Node. This will fail and return an Empty Attribute if this Node is neither an Element nor a Declaration. This will fail and return an empty attribute if this Node is empty.
NodeStruct* Mezzanine::XML::Node::InternalObject | ( | ) | const |
Get internal pointer.
const Char8* Mezzanine::XML::Node::Name | ( | ) | const |
ptrdiff_t Mezzanine::XML::Node::OffSetDebug | ( | ) | const |
Get node Offset in parsed file/string (in char_t units) for debugging purposes.
Mezzanine::XML::Node::operator unspecified_bool_type | ( | ) | const |
Used to convert this to a boolean value in a safe way.
bool Mezzanine::XML::Node::operator! | ( | ) | const |
Used to convert this node the opposite of it's normal boolean value.
This is described in the PugiXML source a a workaround for a borland c++ issue.
bool Mezzanine::XML::Node::operator!= | ( | const Node & | r | ) | const |
bool Mezzanine::XML::Node::operator< | ( | const Node & | r | ) | const |
Compares the internal values to check for lessthanness.
r | The other Node this is being compared to. |
Many of the internal values are pointers, and it is the addresses of these that are being compared.
bool Mezzanine::XML::Node::operator<= | ( | const Node & | r | ) | const |
Compares the internal values to check for inequality and lessthanness.
r | The other Node this is being compared to. |
Many of the internal values are pointers, and it is the addresses of these that are being compared.
bool Mezzanine::XML::Node::operator== | ( | const Node & | r | ) | const |
Compares the internal values to check equality.
r | The other Node this is being compared to. |
Many of the internal values are pointers, and it is the addresses of these that are being compared.
bool Mezzanine::XML::Node::operator> | ( | const Node & | r | ) | const |
Compares the internal values to check for greaterthanness.
r | The other Node this is being compared to. |
Many of the internal values are pointers, and it is the addresses of these that are being compared.
bool Mezzanine::XML::Node::operator>= | ( | const Node & | r | ) | const |
Compares the internal values to check for inequality and greaterthanness.
r | The other Node this is being compared to. |
Many of the internal values are pointers, and it is the addresses of these that are being compared.
Get the absolute path to this Node.
delimiter | The character to use as a pathname separator, this defaults to '/'. |
Creates an Attribute and puts it at the begining of this Nodes attributes.
Name | The name of the New attribute to be created |
This attempts to create an Attribute and stick it at the beginning of the list of attributes on the current Node. This will fail and return an Empty Attribute if this Node is neither an Element nor a Declaration. This will fail and return an empty attribute if this Node is empty.
Node Mezzanine::XML::Node::PrependChild | ( | NodeType | Type = NodeElement | ) |
Creates an element Node as a child of this Node, with the given name at the beginning of the children.
Name | The name of the Node to be created. |
Calls Node::PrependChild(NodeType); using NodeElement as the NodeType.
Copies an Attribute and puts the copy at the beginning of this Nodes attributes.
proto | The attribute to be copied. |
This attempts to create a copy of an attribute Attribute and stick it at the beginning of the list of attribute on the current Node. Tptrdiff_this will fail and return an Empty Attribute if this Node is neither an Element nor a Declaration. This will fail and return an empty attribute if this Node is empty.
void Mezzanine::XML::Node::Print | ( | Writer & | WriterInstance, |
const Char8 * | indent = "\t" , |
||
unsigned int | flags = FormatDefault , |
||
Encoding | DocumentEncoding = EncodingAuto , |
||
unsigned int | Depth = 0 |
||
) | const |
Output the XML document using a Writer.
WriterInstance | The Writer that will be used to output the xml text. |
indent | The Character(s) used to represent a tab in the output, this defaults to one tab character. |
flags | The output format flags, this is a bitfield that defaults to XML::FormatDefault. |
DocumentEncoding | The XML::Encoding of the document, whichs defaults to EncodingAuto |
Depth | This defaults to 0. The amount of times to prepend the indentation to the beginning of each output line. |
This will never write a Byte Order Mark(BOM), and will default to not outputing a document declaration.
void Mezzanine::XML::Node::Print | ( | std::basic_ostream< char, std::char_traits< char > > & | os, |
const Char8 * | indent = "\t" , |
||
unsigned int | flags = FormatDefault , |
||
Encoding | DocumentEncoding = EncodingAuto , |
||
unsigned int | Depth = 0 |
||
) | const |
Output the XML document using a Output Stream.
os | An output stream to send xml text to. |
indent | The Character(s) used to represent a tab in the outpput, this defaults to one tab character. |
flags | The output format flags, this is a bitfield that defaults to XML::FormatDefault |
DocumentEncoding | The XML::Encoding of the document, whichs defaults to EncodingAuto |
Depth | This defaults to 0. The amount of times to prepend the indentation to the beginning of each output line. |
This will never write a Byte Order Mark(BOM), and will default to not outputing a document declaration.
void Mezzanine::XML::Node::Print | ( | std::basic_ostream< wchar_t, std::char_traits< wchar_t > > & | os, |
const Char8 * | indent = "\t" , |
||
unsigned int | flags = FormatDefault , |
||
unsigned int | Depth = 0 |
||
) | const |
Output the XML document using a Output Stream.
os | An output stream to send xml text to. |
indent | The Character(s) used to represent a tab in the outpput, this defaults to one tab character. |
flags | The output format flags, this is a bitfield that defaults to XML::FormatDefault |
Depth | This defaults to 0. The amount of times to prepend the indentation to the beginning of each output line. |
This will never write a Byte Order Mark(BOM), and will default to not outputing a document declaration.
bool Mezzanine::XML::Node::RemoveAttribute | ( | const Attribute & | a | ) |
bool Mezzanine::XML::Node::RemoveAttribute | ( | const Char8 * | Name | ) |
bool Mezzanine::XML::Node::RemoveChild | ( | const Node & | n | ) |
bool Mezzanine::XML::Node::RemoveChild | ( | const Char8 * | Name | ) |
Remove child element as specified by name.
Name | The name of the Node to remove. |
bool Mezzanine::XML::Node::SetName | ( | const Char8 * | rhs | ) |
Set the name of .
rhs | The desired name. |
|
inline |
bool Mezzanine::XML::Node::SetValue | ( | const Char8 * | rhs | ) |
Set the value of this.
rhs | The new Value. |
update this to make the error return code redundant and use an exception instead.
Review for possiblity of buffer overflow.
bool Mezzanine::XML::Node::Traverse | ( | TreeWalker & | walker | ) |
Perform sophisticated (or whatever) algorithms on this and all descendant Nodes in the XML tree.
walker | Any class that fully implement XML::Treewalker. This is where the algorithm to be run is located. |
NodeType Mezzanine::XML::Node::Type | ( | ) | const |
const Char8* Mezzanine::XML::Node::Value | ( | ) | const |
|
protected |