On Thu, 17 Jul 2025, Eldo Varghese wrote:

I second the xmlstarlet approach, why bother creating one's own (crude)
parser when xml parsers already exist.

Another vote for this approach! For anything other than a one-off operation, using an XML parser is the smart move.

Developers have spent untold labor years getting their browsers and parsing libraries to work with malformed html or xhtml. You're best off taking advantage of that work, even if it means a bit of a learning curve.

--
Paul Heinlein
heinl...@madboa.com
45°22'48" N, 122°35'36" W

Reply via email to