嘿傢伙!這讓我堅強起來! 這裏是我的XML文檔簡單的XPath問題iPhone版
<?xml version="1.0" encoding="UTF-8"?>
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
<rootfiles>
<rootfile full-path="content.opf" media-type="application/oebps-package+xml"/>
</rootfiles>
</container>
所有我想要做的就是在根文件元素。我在iPhone上使用TouchXML,這裏是我的xPath查詢:
/container/rootfiles/rootfile
它不起作用!我已經嘗試了一切。 任何幫助,將不勝感激...... 山姆
很好的問題(+1)。查看我的答案,瞭解指針和純XPath解決方案。 :) – 2010-05-01 01:18:13