Question to a MSDN-Article (WordML)

  • Thread starter Matthias Langbein
  • Start date
M

Matthias Langbein

Hi all,

in ref. to the MSDN-Article "New XML Features of the Microsoft Office
Word 2003 Object Model"
(http://msdn.microsoft.com/library/d...n-us/odc_wd2003_ta/html/odc_Wdnew2k3XMLOM.asp)
I've got a few questions:

1.) They say, the first step to work with XML in a word document is
to add the XML-Schema to the Application-Object. As I want to work
with the WordML (Word Object Model), I suppose I need to load this
Schema. But obviously I've got no xsd-file available. How can I manage
to work with the WordML then?

2.) To extract text from a word document, they say to use the
XML-property of the Range-Object of the Paragraph. But my VS.NET does
not offer this property. Is this because I have no reference to a
Namespace jet or why else?

3.) To extract XML Nodes from a word document, they say to use index
on the field "XMLNodes" of the ActiveDocument-Object. But all my
documents seem to have no nodes:
ActiveDocument.XMLNodes.Count => returns 0

Obviously, I couldn't test the rest of the artice, as I could not
acces any XML-Node-Objects.

Hope for help... yours Langi
 

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