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 browsing the Monastery: (4)
As of 2015-11-28 04:53 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls