I'm currently developing an application on top of Office Word 2007 using VSTO 2005 SE

Since .docx documents is using OpenXML i would like to be able to get the XPath of the selected column or tables or any elements in the document itself.

so that later i could refer to this XPath and extract information of that particular path and do something about it by opening document.xml

It would be great if there is a way to get the XPath when i selected a cell in a table and it will give me the XPath of the XML after i've clicked on a button which does that..

Re: Visual Studio Tools for Office Get XPath in OpenXML VSTO2005SE


Have you tried looking at the Open XML information at It's a great site with tons of sample code. Let me know if that helps.