I have an XML doc that I generated using XML::LibXML that needs to be
included as a hidden form field in a form post.
The problem is that the browser is encoding the XML doc.
ie.
?xml version=1.0 encoding=UTF-8?
!DOCTYPE gtfd SYSTEM http://gftd/schemas/data.dtd;
turns into:
lt;?xml
Haapala [EMAIL PROTECTED]
To: Chris Pizzo [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 01, 2002 6:35 AM
Subject: Re: Novice - Problem with data encoding
I have an XML doc that I generated using XML::LibXML that needs to be
included as a hidden form field in a form post
Thats what is wierd. I don't do any escaping. I think it might be
embperl
doing the escaping because if I do a print of the XML doc string it has no
escaping. If I put the string between [+ $content +] then it gets
escaped.
Yes, Embperl escapes your output per default, you can turn it
Hi,
I have an XML doc that I generated using XML::LibXML that needs to be
included as a hidden form field in a form post.
Code snippet:
sub getcXML {
use XML::LibXML;
my $resp_doc = XML::LibXML::Document-new();
my $root = $resp_doc-createElement('blah');
...
my $content = $resp_doc-toString;