954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

XPath with MSWord XML Template not working

Hi, we are using the XML Template of MS Word, and trying to use XPath(in a tool not code, but the same is not working in code also) to read the data from the xml file.

attached the sample code, xml file and the XSD used to generate the word template.

programeticlly we are using java w3c dom
when trying the xpath "//w:customXml" it is returning 0 nodes, but when trying with getElementsByTagName("w:customXml") it is correctly returning 4 nodes.

please help in getting the values using a xPath...

Attachments XPathExample.java (1.27KB) Template.xml (37.52KB) NEW1.xsd_.txt (0.65KB)
zigpy_siva
Newbie Poster
16 posts since Mar 2007
Reputation Points: 10
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: