Hi =?Utf-8?B?ZWxpeGlybWlrZQ==?=,
I have a document in which I am using the XML elements of 2003. I have
a word document I have attached my custom Schema to, and now I wish to
programmatically grab that data and invoke a web-service.
I have started a smart document solution with it, but it's not clear how to
reference those XML elements programmatically?? I can grab the text of the
word document and pass that to a web-service, but I really just want to grab
the xml elements.
If you've connected a schema, then the XML in "your" elements is assigned to a
particular namespace that's different from anything else in the Word document.
So the simplest approach - whether you're automating Word or reading from the
document saved as an XML file - would be to pick up all the XML nodes belonging
to your namespace. This can be done with MSXML explicitly or by applying a
transform.
(Note: my answer is assuming you already know how to use MSXML and transforms,
that you're only uncertain as to how to get at the XML in the Word document. If
you haven't this XML background, please describe what XML experience you have
so that I know how to phrase my next response

)
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail
