System::Xml::XmlAttribute class
Contents
[
Hide
]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
Method | Description |
---|---|
AppendChild(SharedPtr<XmlNode>) override | Adds the specified node to the end of the list of child nodes, of this node. |
CloneNode(bool) override | Creates a duplicate of this node. |
get_BaseURI() override | Returns the base Uniform Resource Identifier (URI) of the node. |
get_LocalName() override | Returns the local name of the node. |
get_Name() override | Returns the qualified name of the node. |
get_NamespaceURI() override | Returns the namespace URI of this node. |
get_NodeType() override | Returns the type of the current node. |
get_OwnerDocument() override | Returns the XmlDocument to which this node belongs. |
virtual get_OwnerElement() | Returns the XmlElement to which the attribute belongs. |
get_Prefix() override | Returns the namespace prefix of this node. |
get_SchemaInfo() override | Returns 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() override | Returns the value of the node. |
InsertAfter(SharedPtr<XmlNode>, SharedPtr<XmlNode>) override | Inserts the specified node immediately after the specified reference node. |
InsertBefore(SharedPtr<XmlNode>, SharedPtr<XmlNode>) override | Inserts the specified node immediately before the specified reference node. |
PrependChild(SharedPtr<XmlNode>) override | Adds the specified node to the beginning of the list of child nodes for this node. |
RemoveChild(SharedPtr<XmlNode>) override | Removes the specified child node. |
ReplaceChild(SharedPtr<XmlNode>, SharedPtr<XmlNode>) override | Replaces the child node specified with the new child node specified. |
set_InnerText(String) override | Sets the concatenated values of the node and all its children. |
set_InnerXml(String) override | Sets the value of the attribute. |
set_Prefix(String) override | Sets the namespace prefix of this node. |
set_Value(String) override | Sets the value of the node. |
WriteContentTo(const SharedPtr<XmlWriter>&) override | Saves all the children of the node to the specified XmlWriter. |
WriteTo(const SharedPtr<XmlWriter>&) override | Saves the node to the specified XmlWriter. |
Typedefs
Typedef | Description |
---|---|
Ptr | An 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
- Class XmlNode
- Namespace System::Xml
- Library Aspose.PDF for C++