xml.js
Version:
XML.js provides helper functions for XML manipulation, including conversion of documents into [JXON](https://developer.mozilla.org/en-US/docs/JXON) objects. It is built on top of [xmldom](https://www.npmjs.org/package/xmldom) & [xpath](https://www.npmjs.o
79 lines • 1.25 kB
JSON
{
"user": {
"#N": {
"A": "http://A.a/",
"hidden": "http://hidden.there/"
},
"id": "123",
"*": [
{
"#C": "Address:"
},
{
"address": {
"city": "Montréal",
"country": "Canada",
"*": "1, pl. Ville-Marie"
}
},
{
"#C": "- - - - -"
},
"TEXT",
{
"#C": "Contacts:\n- - - - -"
},
{
"contacts": {
"*": [
{
"contact": {
"#N": {
"": "http://being.here/",
"B": "http://B.b/"
},
"firstName": "John",
"lastName": "Bird"
}
},
{
"contact": {
"firstName": "George",
"lastName": "Cartier",
"*": {
"notes": {
"*": {
"#D": "Will call back tomorrow."
}
}
}
}
},
{
"contact": {
"#N": "http://over.there/",
"firstName": "Normand",
"lastName": "Larivière",
"*": {
"notes": {
"*": [
{
"#D": "Friend of George."
},
{
"#D": "Asked for an appointment."
}
]
}
}
}
}
]
}
},
{
"hidden:notes": "Salut !"
}
]
}
}