SetAttributeNode()
Contents
[
Hide
]XmlElement::SetAttributeNode(SharedPtr<XmlAttribute>) method
Adds the specified XmlAttribute.
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(SharedPtr<XmlAttribute> newAttr)
Arguments
Parameter | Type | Description |
---|---|---|
newAttr | SharedPtr<XmlAttribute> | The XmlAttribute node to add to the attribute collection for this element. |
Return Value
If the attribute replaces an existing attribute with the same name, the old XmlAttribute is returned; otherwise, nullptr is returned.
XmlElement::SetAttributeNode(String, String) method
Adds the specified XmlAttribute.
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::SetAttributeNode(String localName, String namespaceURI)
Arguments
Parameter | Type | Description |
---|---|---|
localName | String | The local name of the attribute. |
namespaceURI | String | The namespace URI of the attribute. |
Return Value
The XmlAttribute to add.
See Also
- Typedef SharedPtr
- Class XmlAttribute
- Class XmlElement
- Class String
- Namespace System::Xml
- Library Aspose.Slides