可选
selector: stringOptional. A string to filter child elements by name.
An array of XML objects representing the child elements.
The name of the attribute to retrieve.
可选
defValue: booleanThe default value to return if the attribute is not found or not a number.
The floating-point value of an XML node attribute, which is the default value if the attribute value does not exist.
The name of the attribute to retrieve.
可选
defValue: numberThe default value to return if the attribute is not found.
The floating-point value of an XML node attribute, which is the default value if the attribute value does not exist.
The name of the attribute to retrieve.
可选
defValue: numberThe default value to return if the attribute is not found or not a number.
The integer value of an XML node attribute, or the default value if the attribute value does not exist.
The name of the attribute to retrieve.
可选
defValue: stringThe default value to return if the attribute is not found.
The attribute value as a string, or the default value if the attribute is not present.
The name of the child node to find.
The first child node with the specified name, or null if not found.
En
The
XML
class represents an XML node with methods to manipulate and parse XML data.Zh
XML
类表示一个 XML 节点,具有操作和解析 XML 数据的方法。