Thread: Word and XML
View Single Post
 
Old 10-18-2011, 03:32 PM
Dave Duncan Dave Duncan is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Aug 2011
Posts: 4
Dave Duncan is on a distinguished road
Default Word and XML

I am trying to learn how to import xml data into a word document.

<?xml version="1.0" encoding="UTF-8"?>
<clientname>
<name>
<family>Doe</family>
<given>Jon</given>
</name>
</clientname>
<myname>
<name>
<family>Felix</family>
<given>George</given>
</name>
<email>george@blah.com</email>
</myname>




Is there a way to take data in a stored xml file and have it display in a word document...

Something like:

Dear <clientname> it was nice to hear from you.
Yours truly, <myname>
<email>

Would display as:
Dear Jon Doe it was nice to hear from you.
Yours truly, <George Felix>
george@blah.com

I'm trying to create a hybrid of a form letter where the client is always the same, but the content of the letter is different.
Reply With Quote