For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2005 > RE: :simple









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: :simple
Dhanashri Bhate

2005-07-25, 9:24 am

U can use module XML::Parser

-> -----Original Message-----
-> From: info@perlromania.net [mailto:info@perlromania.net]
-> Sent: Monday, July 25, 2005 2:46 PM
-> To: beginners@perl.org
-> Subject: xml::simple
->=20
->=20
->=20
-> Hello,
->=20
-> I've just made a simple script using xml::simple,
-> and I am stuck on something:
->=20
-> I have an xml file that looks like this:
->=20
-> <person>
-> <address>
-> <str>Somewhere</str>
-> <nr>18</nr>
-> <sc>a</sc>
-> </address>
-> </person>
-> <person>
-> <address>
-> <str>Somewhere else</str>
-> <nr>3</nr>
-> <sc>a</sc>
-> <zone>bc</zone>
-> </address>
-> </person>
-> ....
->=20
-> So my question would be, how can I handle dynamic <address> fields
-> (ex. the above code) and be able to refer to each key/value pair
-> inside <address> ?
->=20
-> Thanks !
->=20
->=20
-> --=20
-> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
-> For additional commands, e-mail: beginners-help@perl.org
-> <http://learn.perl.org/> <http://learn.perl.org/first-response>
->=20
->=20
->=20
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com