xml parsing using xpath?


Last Updated:

  1. slash01

    slash01 New Member This Topic's Starter

    Joined:
    Aug 20, 2010
    Messages:
    1
    Likes Received:
    0
    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

    Joined:
    Aug 16, 2010
    Messages:
    2
    Likes Received:
    0
    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...