ViliusCreator (2019-05-18T09:58:42.000Z)
XML in JS without React could totally bring usage in Node js, not only JS. For example, you could pass XML object as parameter to website from server and server would change it to right way, so XML object would be turned to HTML element.
However, in non web-development environment, it would have no usage. Since sometimes Node js is used for general-purpose and not web-development, XML would be practically useless and JSON would be used. And things such as E4X already exist.
The benefit of XML is that you can do `<a b=”c”>d <e></e></a>`(which is equivalent to
```json
{
    ‘//name’: ‘a’,
    ‘//inner’: [‘d ’, {...}],
    b: ‘c’
}
```) and it’s more readable than JSON version of it.`


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190518/0846d449/attachment.html>
viliuskubilius416 at gmail.com (2019-05-18T10:02:33.433Z)
XML in JS without React could totally bring usage in Node js, not only JS. For example, you could pass XML object as parameter to website from server and server would change it to right way, so XML object would be turned to HTML element.
However, in non web-development environment, it would have no usage. Since sometimes Node js is used for general-purpose and not web-development, XML would be practically useless and JSON would be used. And things such as E4X already exist.
The benefit of XML is that you can do `<a b="c">d <e></e></a>`(which is equivalent to
```json
{
    '//name': 'a',
    '//inner': ['d ', {...}],
    b: 'c'
}
```

) and it’s more readable than JSON version of it.