Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^3: split an xml file into pieces

by keszler (Priest)
on Dec 13, 2011 at 10:05 UTC ( #943297=note: print w/ replies, xml ) Need Help??

in reply to Re^2: split an xml file into pieces
in thread split an xml file into pieces

The text inside the ProductAttributes tags resembles HTML, as if it were extracted from a complete HTML page. As is, it's not valid in an XML file - see CDATA for the proper way to handle it.

If you can change how the XML is generated, make it use CDATA. If you must use a regex, see Modifiers for how to make the regex handle multiple lines.

Comment on Re^3: split an xml file into pieces

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-10-07 06:47 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (171 votes), past polls