Help needed in XML::Parser

Discussion in 'Perl' started by ssenthilkumar, Jul 20, 2010.

  1. ssenthilkumar

    ssenthilkumar New Member

    Joined:
    Jul 19, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi All,

    I am having a xml file like this

    <?xml version='1.0'?>
    <person>
    <first_name>Joe</first_name>
    <last_name>Bloggs</last_name>
    <hobbie>bungy jumping</hobbie>
    <hobbie>sky diving</hobbie>
    <hobbie>knitting</hobbie>
    </person>

    I am using XML::Parser to Parse this xml, so that the output should be in the form of a ' list '.

    Is it possible ???. Can any one provide a small piece of code (a pseudocode will be helpful).

    Thanks in advance
    S. Senthil kumar.
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Try using XML::Simple
     
  3. ssenthilkumar

    ssenthilkumar New Member

    Joined:
    Jul 19, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for ur earliest reply.

    I am using XML::Simple

    :D
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice