XmlAttribute Data Type
Version: Available or changed with runtime version 1.0.
Represents an XML attribute.
Static methods
The following methods are available on the XmlAttribute data type.
Method name | Description |
---|---|
Create(Text, Text) | Creates an XmlAttribute node. |
Create(Text, Text, Text) | Creates an XmlAttribute node. |
CreateNamespaceDeclaration(Text, Text) | Creates an attribute that represents a namespace declaration. |
Instance methods
The following methods are available on instances of the XmlAttribute data type.
Method name | Description |
---|---|
AddAfterSelf(Any,...) | Adds the specified content immediately after this node. |
AddBeforeSelf(Any,...) | Adds the specified content immediately before this node. |
AsXmlNode() | Converts the node to an XmlNode. |
GetDocument(var XmlDocument) | Gets the XmlDocument for this node. |
GetParent(var XmlElement) | Gets the parent XmlElement of this node. |
IsNamespaceDeclaration() | Determines if this attribute is a namespace declaration. |
LocalName() | Gets the local name of the attribute. |
Name() | The qualified name of the attribute. |
NamespacePrefix() | Gets the prefix of the attribute (if any). |
NamespaceUri() | Gets the namespace URI of the attribute. |
Remove() | Removes this node from its parent element. |
ReplaceWith(Any,...) | Replaces this node with the specified content. |
SelectNodes(Text, var XmlNodeList) | Selects a list of nodes matching the XPath expression. |
SelectNodes(Text, XmlNamespaceManager, var XmlNodeList) | Selects a list of nodes matching the XPath expression. |
SelectSingleNode(Text, var XmlNode) | Selects the first XmlNode that matches the XPath expression. |
SelectSingleNode(Text, XmlNamespaceManager, var XmlNode) | Selects the first XmlNode that matches the XPath expression. |
Value([Text]) | Gets or sets the value of the attribute. |
WriteTo(OutStream) | Serializes and saves the current node to the given variable. |
WriteTo(XmlWriteOptions, OutStream) | Serializes and saves the current node to the given variable. |
WriteTo(var Text) | Serializes and saves the current node to the given variable. |
WriteTo(XmlWriteOptions, var Text) | Serializes and saves the current node to the given variable. |
See Also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho