1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    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