I have a requirement to build an MS Word 2007 plugin that provides a button which when clicked uploads the Word document to a webservice as XML.

So far this doesn't seem to be all that problematic but the customer has the additional requirement that they want the XML to be meaningful. They are recording formatted text but want certain areas of the document to be encompassed inside certain tags for example:

```
<WordDocument>
    <TagArea1>
        *word style xml for this bit of the document here*
    </TagArea1>
    <TagArea2>
        *word style xml for this bit of the document here*
    </TagArea2>
</WordDocument>

```

Their ideal is to have templates that they can define sections on that when uploaded create this style of XML.

The reason for using Word and not a form based technology is that keeping the formatting consistent is important and being able to choose where page breaks occur etc is vital to them.

I'm concerned that this type of functionality may not be possible but I'm quite new to developing inside Office applications so some pointers would be greatly appreciated.