System::Xml::XmlElement::RemoveAttributeNode method
XmlElement::RemoveAttributeNode(SharedPtr<XmlAttribute>) method
删除指定的 XmlAttribute。
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::RemoveAttributeNode(SharedPtr<XmlAttribute> oldAttr)
| Parameter | Type | 描述 |
|---|---|---|
| oldAttr | SharedPtr<XmlAttribute> | 要删除的 XmlAttribute 节点。如果被删除的属性具有默认值,则会立即被替换。 |
ReturnValue
被删除的 XmlAttribute 或 nullptr(如果 oldAttr 不是 XmlElement 的属性节点)。
另见
- Typedef SharedPtr
- Class XmlAttribute
- Class XmlElement
- Namespace System::Xml
- Library Aspose.Page for C++
XmlElement::RemoveAttributeNode(String, String) method
删除由本地名称和命名空间 URI 指定的 XmlAttribute。 (如果被删除的属性具有默认值,则会立即被替换)。
virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::RemoveAttributeNode(String localName, String namespaceURI)
| Parameter | Type | 描述 |
|---|---|---|
| localName | 字符串 | 属性的本地名称。 |
| namespaceURI | 字符串 | 属性的命名空间 URI。 |
ReturnValue
被删除的 XmlAttribute 或 nullptr(如果 XmlElement 没有匹配的属性节点)。
另见
- Typedef SharedPtr
- Class XmlAttribute
- Class String
- Class XmlElement
- Namespace System::Xml
- Library Aspose.Page for C++