About XML and HTML parsing.

I've now accumulated a lot of code that could be contributed as an SPM library for XML/HTML parsing. See below for a simple example of how I currently parse an HTML file loaded into Data. The 'query' and 'subscript' functions accept an XPath string as a parameter.

What do you think?

What do you usually use in your projects for XML parsing?

#swift #xml #html #xpath

@romanli regex of course

Sorry I'm just joking :)

@ctietze Not the worst case. At least the developer will improve the regex skill this way.