Get the value of a content control

Apr 18, 2010 at 2:59 AM

Hi everyone,

I'm a newbie with content controls and word XML format. I'm trying to get the value of the content controls within a Word 2007 document by parsing it's XML using Open XML SDK. Currently, I'm retrieving the w:sdtContent tag of the content controls to be able to get the value. Then I get all the w:r tags and look for the value. I'm not sure if this is the correct path to do it. Is there already an API that will do this task? It would really help me if I somebody can provide a snippet on how to correctly do this. I tried searching the net but haven't found one.


Many thanks in advance!