On Thursday, December 15, 2016 at 12:04:23 AM UTC+1, Lehi Toskin wrote:
> I have some XML - rather, XMP data from an image - that I'd like to mess 
> around with. I've investigated the xml library and found that I can turn the 
> XML into an XEXPR so I can play around with it like that and even search 
> through it with se-path*/list, but how would I go from there to replacing 
> parts of the XEXPR? By my reckoning, I'd need to scan through the list and 
> locate the data I want and then do something like list-set, but searching 
> through an XEXPR that can have many nested sublists sounds like a nightmare 
> to program for.
> 
> I suppose I could take a look at the XML string and do a regexp-match or 
> something similar, but that seems inelegant and almost brute-force-y.

With pure XML you could use XSLT, so with SXML/xexpr you could do the same 
using SXSLT:
https://docs.racket-lang.org/sxml/sxslt.html

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to