libxml2 on iPhone
Posted
by mellkord
on Stack Overflow
See other posts from Stack Overflow
or by mellkord
Published on 2010-06-06T09:54:59Z
Indexed on
2010/06/06
10:02 UTC
Read the original article
Hit count: 392
I'm trying to parse HTML file with libxml2. Usually this works fine, but not in this case:
<p>
<b>Titles</b>
(Some Text)
<table>
<tr>
<td valign="top">
…Something1...
</td>
<td align="right" valign="top">
…Something2...
</td>
</tr>
</table>
</p>
I do this query to get the first <td>
//p[b='Titles']/table/tr/td[0]
but nothing is returned because libxml think that <table> tag is not a child of a tag <p> and following him.
And finally the question WHY?
© Stack Overflow or respective owner