1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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