PDA

View Full Version : CustomXMLPart XPath Mapping and word OpenXml xpath databinding



khaled.k
04-21-2016, 09:40 AM
Hi everybody


I am trying to map ContentControls with CustomXML through VBA.For mapping nodes, I use Xpath For Example:


XPath = "/GlobalTest/Tests/test[id = '1254']/verbalization"


Now on the document word in document.xml this mapping is generated as follows: /GlobalTest[1]/Tests[1]/test[1]/verbalization[1]"


my question is: Can we keep the id with the XPath generated in the Word document, can we keep the same XPath.

Thank you very much