XmlDeclaration Data Type
Version: Available or changed with runtime version 1.0.
Represents an XML declaration.
Static methods
The following methods are available on the XmlDeclaration data type.
Method name | Description |
---|---|
Create(Text, Text, Text) | Creates an XmlDeclaration node. |
Instance methods
The following methods are available on instances of the XmlDeclaration 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. |
Encoding([Text]) | Gets or sets the encoding of the XML document. |
GetDocument(var XmlDocument) | Gets the XmlDocument for this node. |
GetParent(var XmlElement) | Gets the parent XmlElement of this node. |
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. |
Standalone([Text]) | Gets or sets the standalone property for this document. |
Version([Text]) | Gets or sets the version property for this document. |
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기