跳到主要内容

ApiCustomXmlNode

Represents the ApiCustomXmlNode class.

Methods

MethodReturnsDescription
AddApiCustomXmlNodeCreates a child node for the current XML node.
DeletebooleanDeletes the current XML node.
DeleteAttributebooleanDeletes an attribute from the custom XML node. If the attribute exists, it will be removed.
GetAttributestring | nullRetrieves the attribute value from the custom XML node. If the attribute doesn't exist, it returns false.
GetAttributesCustomXmlNodeAttribute[]Returns a list of attributes of the current XML node.
GetClassType"customXmlNode"Returns a type of the ApiCustomXmlNode class.
GetNodeNamestringReturns the name of the current XML node.
GetNodeValuestringReturns the XML string representation of the current node content.
GetNodesApiCustomXmlNode[]Returns nodes from the custom XML node based on the given XPath.
GetParentApiCustomXmlNode | nullReturns the parent of the current XML node.
GetTextstringReturns the inner text of the current node and its child nodes. For example: <text>123<one>4</one></text> returns "1234".
GetXPathstringReturns the absolute XPath of the current XML node.
GetXmlstringReturns the XML string of the current node.
SetAttributebooleanSets an attribute for the custom XML node. If the attribute already exists, it will not be modified.
SetNodeValuebooleanSets the XML content for the current node.
SetTextbooleanSets the text content of the current XML node.
SetXmlbooleanSets the XML content of the current XML node.
UpdateAttributebooleanUpdates the value of an existing attribute in the custom XML node. If the attribute doesn't exist, the update will not occur.