Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XPath expression to a custom property in Word 2007 ? XPath expression to a custom property in Word 2007 ?To: NULL Date: 11/8/2008 7:11:00 PM I'm trying to map a custom property of a Word 2007 document to a contentcontrol. Mapping is not so hard : Dim strXPath As String strXPath = "tree/fruit/fruitType[1]" ActiveDocument.ContentControls(1).XMLMapping.SetMapping strXPath But setting the right XPath is is giving me a hard time. Here is the custom XML file : <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"> - <property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="2" name="MyFirstCustomProperty"> <vt:lpwstr>FirstText</vt:lpwstr> </property> - <property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="3" name="MySecondCustomProperty"> <vt:lpwstr>SecondText</vt:lpwstr> </property> </Properties> What would be the correct XPath expression to MySecondCustomProperty ? Kay | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
