The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You should pay no attention to the fact that it’s in CDATA. All that means is that angle brackets should be considered to be escaped; CDATA has the same semantics as plain text included in the document with angle brackets written as < and >. In other words the section in CDATA will appear as a simple string, by design. That’s what CDATA is for. You need to get this string, and then in turn feed it to an XML parser. Of course, embedding escaped markup in XML is a bad idea (see even more on that); if you have any say in the design of the format, you should ask that it not be done. Makeshifts last the longest. In reply to Re: CDATA in an XML file for parsing.
by Aristotle
|
|