System::Xml::XmlText class

XmlText class

Represents the text content of an element or attribute.

class XmlText : public System::Xml::XmlCharacterData

Methods

MethodDescription
CloneNode(bool) overrideCreates a duplicate of this node.
get_LocalName() overrideReturns the local name of the node.
get_Name() overrideReturns the qualified name of the node.
get_NodeType() overrideReturns the type of the current node.
get_PreviousText() overrideReturns the text node that immediately precedes this node.
get_Value() overrideReturns the value of the node.
set_Value(String) overrideSets the value of the node.
virtual SplitText(int32_t)Splits the node into two nodes at the specified offset, keeping both in the tree as siblings.
WriteContentTo(const SharedPtr<XmlWriter>&) overrideSaves all the children of the node to the specified XmlWriter. XmlText nodes do not have children, so this method has no effect.
WriteTo(const SharedPtr<XmlWriter>&) overrideSaves the node to the specified XmlWriter.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

Remarks

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also