in reply to Re: Re: XML::Twig - literal nodes
in thread XML::Twig - literal nodes
Sorry, you can't do this in XML.
XML::Twig reads XML files, and a file with random &'s and <'s is _not_ XML. Hence XML::Twig or any XML tool can't do a thing for you there. If you want to include random special characters then you _have_ to use one of the 2 appropriate schemes allowed in XML: either escape each instance of those character or use a CDATA section.
What you are describing is an interesting format, it is an extension of the input format accepted by PerlMonks actually, but it is not XML. And no tool based on an XML parser can accept it.
Darn! You've reached the limit beyond which I can't extend XML::Twig. I can't believe it!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: XML::Twig - literal nodes
by John M. Dlugosz (Monsignor) on Nov 09, 2001 at 00:18 UTC |