3 ms·
>what's so bad about XML? That no programming language deals natively with XML's data structure. That's why xpath and xslt needed to be invented. This suggests
by EdiX 11y ago
>what's so bad about XML?
That no programming language deals natively with XML's data structure. That's why xpath and xslt needed to be invented.
This suggests that XML's data structure is not actually a good mapping for people's problems.
- Mikhail_Edoshin 11y agoI don't know about all the landscape, but in Python, at least, with `lxml`, you can configure the parser to yield native Python objects. I.e. you parse a XML file and get your own objects as a result. Here "your own" part is limited to your class and methods (no data, except what is in the element itself), but it's already rather convenient. (I can't say `lxml` is simple and Pythonic though; it's rather cumbersome to boot.)