我在iPhone上使用GDataXML(在後臺使用libxml2)從XML文件讀取名稱列表。GDataXML/Libxml2 XPath concat不起作用
<persons>
<person id=1>
<firstname>John<firstname>
<lastname>Doe<lastname>
</person>
</persons>
但是,當我嘗試Concat的第一和姓氏與
/persons/person/concat(firstname, ' ', lastname)
它不與GDataXML工作。當用.NET XML庫創建示例時,或者使用AquaPath對其進行測試時,它就可以工作。
任何提示或其他選擇讓它工作?
問得好,+1。請參閱我的答案以獲得解釋和完整解決方案。 :) – 2010-11-26 19:03:05
[AquaPath](http://ditchnet.org/aquapath/)是一個XPath 2.0評估程序。 – 2010-11-26 19:18:57