ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
RootName option does not work in XML::Simple
by Sripathi Guruprasannaraj other posts by this author
Oct 14 2005 1:13PM messages near this date
view in the new Beta List Site
RootName option does not work in XML::Simple | Re: 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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved