Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Modify XML tags

by choroba (Cardinal)
on Nov 18, 2011 at 15:36 UTC ( [id://938867]=note: print w/replies, xml ) Need Help??


in reply to Modify XML tags

What do you mean by "XPath feature being case-insensitive"? XPath is case sensitive, AFAIK.

I usually use XML::XSH2 for XML manipulation. To lowercase all element and attribute names, you can use:

rename xsh:lc(name(.)) (//* | //@*)
Be careful if the lowercase attribute already exists!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://938867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-18 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found