Automattic / hostmgr

A tool for managing macOS VM hosts
Mozilla Public License 2.0
9 stars 3 forks source link

Simplify XML parsing code #91

Closed AliSoftware closed 6 months ago

AliSoftware commented 6 months ago

Migrate all AWSResponses XML parsing from SAX (XMLParser + delegate) to DOM (XMLDocument)

This is an approach that I've started to use when I implemented additional AWS requests for resumable upload support, and it simplifies the parsing code drastically, so I figured I'd migrate existing parsers to use this approach too.


Note: This builds on top of https://github.com/Automattic/hostmgr/pull/90 / refine-tests branch—so that we benefit from tests not referencing internal Parser implementations (that used a SAX XMLParser) anymore.