Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: XML::Twig and whitespaces

by monkey_boy (Priest)
on Aug 23, 2007 at 14:49 UTC ( #634654=note: print w/ replies, xml ) Need Help??


in reply to XML::Twig and whitespaces

I modified your code below to see how XML::Simple handles this, is seems to do the same thing, i suspect its one of the underlying modules possibly XML::Parser thats causing this:

#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use XML::Simple; my $xml = XMLin(qq{<root t="space tab\tnewline\nend"/>}); print Dumper $xml;

output:
$VAR1 = { 't' => 'space tab newline end' };


This is not a Signature...


Comment on Re: XML::Twig and whitespaces
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://634654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2015-07-06 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (73 votes), past polls