Transform values when using SweetXML xmap
Assume I have the following XML
I can write a small module to map this to something really cool.
.map
will find a list of user
elements, concatenate the firstName
and lastName
, then upcase the whole thing and return it in a map.
That's doing a lot with a little.
Tweet