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
Newbee question: how to manipulate xml file
by lemkemch other posts by this author
Mar 17 2006 2:52PM messages near this date
view in the new Beta List Site
BNF and DTD utils | Re: Newbee question: how to manipulate xml file
& XSLT I just started to look into manipulating xml files with perl and can't cut  
through all of these modules.  Google wasn't much help unlike for other  
perl problems.  I don't know much about xml either.  What I basically want  
to do is

   $xml = readxmlfromfile "file";
   add/manipulate some elements
   writexmltofile "newfile";

To get started, how to read a xml file and write it back such that the new  
file is semantically identical to the original?

To me XML::Simple gives me the structure in a format I think a xml file  
should be represented but then how to write it back without change?  The  
result of XMLout looked quite different from the original, it started with  
completely different characters (I don't mind the formatting).

Thanks,
Michael-


_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
lemkemch
Grant McLean
lemkemch
A. Pagaltzis

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