System::Xml::XmlAttribute class

XmlAttribute class

Represents an attribute. Valid and default values for the attribute are defined in a document type definition (DTD) or schema.

class XmlAttribute : public System::Xml::XmlNode

Methods

MethodDescription
AppendChild(SharedPtr<XmlNode>) overrideAdds the specified node to the end of the list of child nodes, of this node.
CloneNode(bool) overrideCreates a duplicate of this node.
get_BaseURI() overrideReturns the base Uniform Resource Identifier (URI) of the node.
get_LocalName() overrideReturns the local name of the node.
get_Name() overrideReturns the qualified name of the node.
get_NamespaceURI() overrideReturns the namespace URI of this node.
get_NodeType() overrideReturns the type of the current node.
get_OwnerDocument() overrideReturns the XmlDocument to which this node belongs.
virtual get_OwnerElement()Returns the XmlElement to which the attribute belongs.
get_Prefix() overrideReturns the namespace prefix of this node.
get_SchemaInfo() overrideReturns the post-schema-validation-infoset that has been assigned to this node as a result of schema validation.
virtual get_Specified()Returns a value indicating whether the attribute value was explicitly set.
get_Value() overrideReturns the value of the node.
InsertAfter(SharedPtr<XmlNode>, SharedPtr<XmlNode>) overrideInserts the specified node immediately after the specified reference node.
InsertBefore(SharedPtr<XmlNode>, SharedPtr<XmlNode>) overrideInserts the specified node immediately before the specified reference node.
PrependChild(SharedPtr<XmlNode>) overrideAdds the specified node to the beginning of the list of child nodes for this node.
RemoveChild(SharedPtr<XmlNode>) overrideRemoves the specified child node.
ReplaceChild(SharedPtr<XmlNode>, SharedPtr<XmlNode>) overrideReplaces the child node specified with the new child node specified.
set_InnerText(String) overrideSets the concatenated values of the node and all its children.
set_InnerXml(String) overrideSets the value of the attribute.
set_Prefix(String) overrideSets the namespace prefix of this node.
set_Value(String) overrideSets the value of the node.
WriteContentTo(const SharedPtr<XmlWriter>&) overrideSaves all the children of the node to the specified XmlWriter.
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