I can't use dashes in XPATH on iphone using libxml2

Posted by user249488 on Stack Overflow See other posts from Stack Overflow or by user249488
Published on 2010-03-09T17:30:53Z Indexed on 2010/05/11 22:04 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

I'm trying to parse HTML data using KissXML for iphone. I've noticed that I can't have dashes in the id() tag, otherwise it won't evaluate. For example, if I'm trying to get the element at I would do

id("foo")

However, if I try to get at element , and I try

id("foo-bar")

the libxml2 XPATH engine doesn't seem to return anything. It works using the XPATH check for firefox, though. Anyone run into this issue and know of a reason why it's happening or have a workaround (besides using the absolute XPATH path?)

© Stack Overflow or respective owner

Related posts about xpath

Related posts about iphone