XML tools
Methods
# static getValue(xml, typeopt) → {Array.<any>|any}
Parses the value of the XML object.
If this object length is not 1, an Array is returned
If this object length is not 1, an Array is returned
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
xml |
XML
|
The xml to parse | ||
type |
string
|
<optional> |
'string' | The type, one of 'string', 'bool', 'int', 'float' or 'date'. |
The value or an Array of values
Array.<any>
|
any