RootName option does not work in XML::Simple
by Sripathi Guruprasannaraj other posts by this author
Oct 14 2005 12:08PM messages near this date
view in the new Beta List Site
Re: Namespace support in SAX serialisers
|
RootName option does not work in XML::Simple
& XSLT Hi,
I'm trying to use the XML::Simple module that you authored. I'm
using Perl 5.8.1 in Windows XP and XML::Simple version 1.06. The
RootName option does not seem to be working or atleast I'm not sure
how it's supposed to work. I'm attaching sample code below. Please let
me know where I'm going wrong.
Thanks,
Raj
#!perl
use strict;
use XML::Simple;
my $ref = {
task => {
pmedia => '/usr/home/sg47',
destLoc => '/usr/home/sripathi',
fileuri => '/etc/conf/etc.conf',
extension => {
name => 'DS_Sender',
item => [
{val => 'a@b.com'},
{val => 'a@c.com'},
]
}
}
};
my $xs = new XML::Simple(RootName=> undef);
my $xml = $xs-> XMLout($ref);
print $xml;
--
-------------------------------------------------------------------
"Every man is God playing the fool." - Emerson
-------------------------------------------------------------------
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Sripathi Guruprasannaraj
Sripathi Guruprasannaraj
Sripathi Guruprasannaraj
Grant McLean
|