As per the title, I am looking for a way to modify an XML file through XPath. To avoid the X/Y problem, let me explain why: it seems too much work to employ a SAX parser and just store hierarchical state until I find a match, and then modify the element and store to a new structure. But I am open to be proven wrong.
I scanned quickly several libraries around here but save for Exoml – which I’ll dig into – everything else seems to either not support this scenario, or require more effort than I am willing to put into this toy problem. Still, I really want to get it done so I am also open for suggestions that aren’t quick or simple as well.
Anybody did something like that?