What's the best way to handle XML parsing in modern applications? or Struggling with XML parsing? Any

22 Replies, 1407 Views

XML parsing sucks, but jq (with the `--xml` flag) can sometimes help for quick transformations.

For speed, SAX is king. DOM is just too slow for big files.

And nested tags… I usually just refactor the XML if I can. Life’s too short.
For xml parsing, I’ve had good luck with Jackson in Java. It’s meant for JSON, but the XML module works surprisingly well.

For nested tags, I use XPath or just break it into smaller files.

And speed… yeah, streaming parsers are the only way to go for big files.



Users browsing this thread: 1 Guest(s)