1. Download our Official Android App: Forums for Android!

Apps xml parsing using xpath?

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

  1. slash01

    slash01 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Aug 20, 2010

    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 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Aug 16, 2010

    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...