swc/crates/swc_xml_parser/tests/fixture/entity/output.json

177 lines
3.7 KiB
JSON
Raw Normal View History

2022-08-01 06:56:12 +03:00
{
"type": "Document",
"span": {
"start": 1,
"end": 121,
"ctxt": 0
},
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 121,
"ctxt": 0
},
"tagName": "root",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 12,
"end": 27,
"ctxt": 0
},
"tagName": "h",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "a",
"rawName": "a",
"value": "&noti;",
"rawValue": "'&noti;'"
}
],
"children": []
},
{
"type": "Text",
"span": {
"start": 27,
"end": 32,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 32,
"end": 47,
"ctxt": 0
},
"tagName": "h",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "a",
"rawName": "a",
"value": "&lang=",
"rawValue": "'&lang='"
}
],
"children": []
},
{
"type": "Text",
"span": {
"start": 47,
"end": 52,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 52,
"end": 80,
"ctxt": 0
},
"tagName": "test",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "test",
"rawName": "test",
"value": "Ӓ",
"rawValue": "\"Ӓ\""
}
],
"children": []
},
{
"type": "Text",
"span": {
"start": 80,
"end": 85,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 85,
"end": 113,
"ctxt": 0
},
"tagName": "test",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "test",
"rawName": "test",
"value": "Ē",
"rawValue": "\"Ē\""
}
],
"children": []
},
{
"type": "Text",
"span": {
"start": 113,
"end": 114,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
]
}
]
}