Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Swapping XML Elements

by mrborisguy (Hermit)
on Nov 29, 2005 at 19:31 UTC ( [id://512753]=note: print w/replies, xml ) Need Help??


in reply to Swapping XML Elements

Here's what I observe: There may or may not be a line break between the elements. However, your regex assumes that there is not. Somehow, you need to get the entire document into one variable, and run the substitutions on that variable, making sure you account for possible newlines in the variable.

    -Bryan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-18 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found