Static
Private
_fromStatic
Private
_fromStatic
Private
_parseStatic
fromStatic
toconverts a passed in XML object into a Javascript object
XML to object deserialisation will use the following rules:
@
symbol inside the element objectkeyValue
Ex:
<html>
<image src="./foo/bar/baz.jpg" />
<hr />
<span style="color:#808080" class="hidden rounded">
This is coloured
</span>
</html>
will become:
{
"html": {
"image": {
"@src": "./foo/bar/baz.jpg",
},
"hr": {},
"span": {
"@style": "color:#808080",
"@class": "hidden rounded",
"keyValue": "This is coloured"
}
}
}
an XML Document, Element or DocumentFragment to be converted into a Javascript Object
a Javascript Object representation of the passed in XML object
Generated using TypeDoc
converts the passed in XML string into a Javascript object
XML to object deserialisation will use the following rules:
@
symbol inside the element objectkeyValue
Ex:
will become: