Skip Menu |

This queue is for tickets about the XML-LibXML-Simple CPAN distribution.

Report information
The Basics
Id: 106824
Status: resolved
Priority: 0/
Queue: XML-LibXML-Simple

People
Owner: Nobody in particular
Requestors: sjn+perlbug [...] pvv.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.95
Fixed in: (no value)



Subject: Wanted: hook for filtering input data
Let's assume we have the following input XML data ---------------->8===================== <foo> <bar>asdf</bar> <baz>qwer</baz> <quux>True</quux> <quuux>False</quuux> </foo> =======================8<-------------- I'd love to have an input filter where I can change the content of <quux> elements, preferably with a callback function I supply. (In the example above, it might make sense to make the content more Perlish (eg for numeric comparison) by offering a callback method that checks if the element name is qr/quuu?x/i and then replace the related content with 0 or 1 depending on what it was originally). I'll leave it up to you to figure out some details; Maybe it's sensible to make use of some xpath fun? Dunno.
I already had implemented it, but forgot to release it. Now on CPAN as 0.96