xml-lite
Version:
maintaining xml in pure javascript (IN BOTH NODE.JS & BROWSERS)
32 lines • 708 B
JSON
{
"type": 9,
"children": [
{
"type": 1,
"tag": "svg",
"children": [
{
"type": 1,
"tag": "path",
"attributes": {
"fill": "none",
"d": "M0 0h24v24H0V0z"
}
},
{
"type": 1,
"tag": "path",
"attributes": {
"d": "M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"
}
}
],
"attributes": {
"xmlns": "http://www.w3.org/2000/svg",
"width": "24",
"height": "24",
"viewBox": "0 0 24 24"
}
}
]
}