1. Check out our companion app, Forums for Android! Download from Google Play

xml parsing using xpath?

Discussion in 'Application Development' started by slash01, Aug 20, 2010.

  1. slash01

    slash01 New Member
    Thread Starter
    5

    Aug 20, 2010
    1
    0
    5
    Hi guys,

    i have an xml file :

    Code (Text):
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <menus>
    3.     <page num="1">
    4.         <menu title="Hotel" icon="hotel.png" id="13" type="1"/>
    5.         <menu title="Restaurant" icon="restaurant.png" id="18" type="1"/>
    6.         <menu title="Spa et Thalasso" icon="spa_thalasso.png" id="119" type="1"/>
    7.         <menu title="Soir
     

    Advertisement

  2. durin

    durin New Member
    5

    Aug 16, 2010
    2
    0
    5
    Hi,

    I use HtmlCleaner and XPATH to parse HTML files. You can also find a nice posting with an example here . You're lucky because you have a XML (hopefully well formed) so you can skip the HTML cleaning.

    Greetings,
    Durin
     

Share This Page

Loading...