ต่อไปนี้เป็นไฟล์ XML ของฉัน
<xyzevent xmlns="http://www.xyz.com/common/xyzevent/v1" xmlns:xsi="http://www.w3.org2001XMLSchema-instance">
<header>
----
</header>
<subscription xmlns="http://www.xyz.com/common/xyzevent/source/v1">
<sender></sender>
<receiver>
<clientsubscription>
<servicemap>nanna</servicemap>
</clientsubscription>
</receiver>
</subscription>
</xyzevent>
เมื่อฉัน budila org.w3c.dom.Document จาก XML นี้และใช้ XPathExperssion กับนิพจน์
/xyzevent/subscription/receiver/clientsubscription/servicemap/text()
ผลลัพธ์เป็นสตริงว่าง นิพจน์อาจมีปัญหาอะไร
ขอบคุณ