inserting wordml snippets into another Wordml document

S

slaxman

Scenario steps
1. Open a word document and save as WORDML file
2. Open another document and save a 'selection' as WORDML(this is done
thru' code as word does not have the facility to save a selection.
3. Now insert or append the prev. Wordml snippet into the original wordml
doc. to create an output WORDML (would like to do it w/o using WORD. ie.
Manipulate purely as text or xml)

any help is greatly appreciated...

thanks

Saravanan L
 
C

Cindy M.

Hi =?Utf-8?B?c2xheG1hbg==?=,
Scenario steps
1. Open a word document and save as WORDML file
2. Open another document and save a 'selection' as WORDML(this is done
thru' code as word does not have the facility to save a selection.
3. Now insert or append the prev. Wordml snippet into the original wordml
doc. to create an output WORDML (would like to do it w/o using WORD. ie.
Manipulate purely as text or xml)

any help is greatly appreciated...
You use a transform or manipulate the XML directly with a parser or XPath.
Just take everything contained in the <w:body> element from (2) and make it
the LastChild of the same element in (1).

If you don't know how to use XML like this, I recommend you learn XML first,
and ask in the XML and/or XSL newsgroup. I can recommend the "Office 2003 XML"
book from O'Reilly press.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 
S

slaxman

your solution worked. thanks a lot Cindy

Cindy M. said:
Hi =?Utf-8?B?c2xheG1hbg==?=,

You use a transform or manipulate the XML directly with a parser or XPath.
Just take everything contained in the <w:body> element from (2) and make it
the LastChild of the same element in (1).

If you don't know how to use XML like this, I recommend you learn XML first,
and ask in the XML and/or XSL newsgroup. I can recommend the "Office 2003 XML"
book from O'Reilly press.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)


This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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