CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
XML parsing

 



ravisadani
New User

Mar 17, 2009, 3:28 AM

Post #1 of 2 (340 views)
XML parsing Can't Post

i want to parse a XML under a .cgi ..

below is the structure

<S1 Name= 'A>
<T1 name = 'T'>
<P1 name = 'P'>
<G1>1</G1>
<G2>2</G2>
<G3>3</G3>
</P1>
<P2 name = 'PP'>
<GG1>1</GG1>
<GG2>4</GG2>
<GG3>5</GG3>
</P2>
</T1>
</S1>

<<S1 Name= 'B>
<T1 name = 'V'>
<P1 name = 'M'>
<H1>1</H1>
<H2>5</H2>
<H3>7</H3>
</P1>
</T1>
</S1>

How can i parse the above and use elements of XML.

Thanks


FishMonger
Veteran / Moderator

Mar 17, 2009, 5:22 AM

Post #2 of 2 (337 views)
Re: [ravisadani] XML parsing [In reply to] Can't Post

XML::Simple
http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm

XML::Twig
http://search.cpan.org/~mirod/XML-Twig-3.32/Twig.pm

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives