How do you grab GUID and modify xml parts

T

tony

I'm a total VB.Net noob, having been a web developer for so long in the open
source world and this is a completely different environment. What I'm looking
to do is modify XML parts within word document. I have watched the videos in
the HDI series and I'm wanting to extend a few things in the video tutorial
on modifying xml parts within word.


Basically I have these tables with custom content controls that are bound to
xml parts as I'm using a word document to be the interface for content
writers to input content into for a story board. Then I want to manipulate
hidden (or unbound) xml nodes nodes within that xml part for
developers/designers to input information such as the location of a image
file.

Here's what I'm trying to figure out. Tell me if I'm totally off base, I
don't mind as I really need some help here.

I'm thinking that I would have a form for an addin that had a drop down box
to select the xml part and a text box for editing the xml in the xml part.
Then I would have a button that would save the xml part.

So here are a few of my questions:

How do I grab the GUID from the xml part or from a table in the document
and use those IDs for a collection to be placed in a drop down? In the long
run I would like to have a custom content field


How do I detect what is selected in the word document? For example I want to
detect if a table is selected as that is where I have my custom content
controls that are bound to xml parts. Ultimately I want to use the table
names to navigate to the page where they need to input data.


I noticed in the video from the HDI series that they were able to grab the
xml part but there didn't seem to be a way to save the xml when you edit it.


I think that's about it. If anyone could point me to the correct places to
read up to figure this out, or can sorta tell me what I need to do, or even
has a code example that would be awesome.

Hopefully someone has done something to this affect.

Thanks,
Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top