Results 1 to 2 of 2
  1. #1
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default Xpath and Xquery

    I'm new to Java and Xpath. I want to extract data from html file. I'm using Xpath expression. how can I get the data in the following code.?

    Java Code:
    <tr>
    <td colspan="4" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="25" background="images/categorybg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="55%" class="addresstitle"><strong><font color="#6A0000">
    &nbsp;
    SiNtu clinic
    </font></strong></td>
    <td width="19%" align="left" class="heading2"><font color="#666666">
    <span class="unnamed1">
    Simmpr
    </span></font></td>
    <td width="14%" align="left"><font color="#666666"><strong>
    <span class="unnamed1">
    26184885</span></strong></font> <span class="unnamed1">
    
    </span> </td>
    <td width="12%" align="right">
    
    <div align="right" class="unnamed1"><a href="displayads\badrisid\badrisid.htm"
    Please help me to get SiNtu clinic, Simmpr as XML

    Thanks

  2. #2
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default

    XPath can used to get some element from XML file for example by using some relative path but not from HTML file

Similar Threads

  1. xpath question
    By Ed in forum XML
    Replies: 1
    Last Post: 07-09-2007, 12:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •