Re: XML::Parser & "invalid character"
by Barrie Slaymaker other posts by this author
Mar 30 2002 6:24AM messages near this date
view in the new Beta List Site
Re: XML::Parser & "invalid character"
|
XML::Parser & "invalid character"
On Fri, Mar 29, 2002 at 10:26:14PM +0100, Jenda Krynicky wrote:
>
> Basicaly all I want is to write some data from the database on one
> computer to a file and read them in on another. I did not expect to
> be restricted to "text only".
This bit of XML really galls me too.
About the most graceful ways to deal with this are encoding all possibly binary
data with your favorite encode-to-printables routine or to use a special tag
<char code="23"/> to encode the offensive characters. The former is good for
very binary data, the latter for text with the occasional binary value sneaking
in.
VCP::Dest::revml and VCP::Source::revml use the <char .../> technique (be
warned, the latter is a crufty old implementation using XML::Parser).
It sure would be handy to have a pair of SAX filters to do this escaping; if it
doesn't occur before I get to updating that part of VCP, I'll do it then.
- Barrie
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Duncan Cameron
Jenda Krynicky
Barrie Slaymaker
|