You must Sign In to post a response.
  • Category: XML

    How to parse xml using R xml package

    Hi Team,

    Please find the below xml file to be parse in R xml package.
    What is the script we need to use in R xml package to parse xml file correctly?

    <?xml version="1.0" encoding="utf-8"?>
    <TicketFees>
    <tabels>
    <Source>http://abc.com</Source>
    <tabel seq="1">
    <titles>
    <title>FEES FOR India</title>
    <title>For Non Indian LKR 310/- will be charged</title>
    </titles>
    <Headers>
    <Header Value="Sr. NO">
    <Rows>
    <row>1</row>
    <row>2</row>
    <row>3</row>
    <row>4</row>
    </Rows>
    </Header>
    <Header Value="Type of visa">
    <Rows>
    <row>Business1</row>
    <row>Business2</row>
    <row>Business3</row>
    <row>Business4</row>
    </Rows>
    </Header>
    </Headers>
    <Footer>Footer1</Footer>
    </tabel>
    </tabels>
    <Bullets>
    <Source>http://abc.com</Source>
    <Bullet seq="2">
    <titles>
    <title>FEES FOR USA</title>
    <title>reference process.</title>
    </titles>
    <info Value="Business12">
    <SubInfo>For first</SubInfo>
    <SubInfo>For second</SubInfo>
    </info>
    <info Value="Business12">
    </info>
    <Footer>Footer2</Footer>
    </Bullet>
    </Bullets>
    </TicketFees>


    Thanks in advance.
  • #761009
    Hello Sandip,

    You can go through the below link :

    http://www.informit.com/articles/article.aspx?p=2215520

    It may work for you to parse xml data using R xml package.

    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"


  • Sign In to post your comments