How to embedd Word doc in XML

Arthur (archive)

Usenet Archive
Joined
Jul 12, 2000
Messages
201
Reaction score
0
Hi!

I'm reading data from an SQLServer database, storing tabelnames and fields as tags with values and so on. One of the fields I'm storing in the XML file may contain a Worddoc. I can't use CDATA, and therefor have to use base64. But when I try to store this value I get a parse error, this because the Word doc is not binary. I'm using a DOM object when doing this. a bit of the code I use:
....
Set xmlDOMDocument = New MSXML2.DOMDocument40
xmlDOMDocument.loadXML "<DOCUMENTS />"
Set oRoot = xmlDOMDocument.documentElement
Set oElement = xmlDOMDocument.createElement("WORDDOC")
oElement.DataType = "bin.base64"
oElement.nodeTypedValue = rs("Document")
....

Greatful for any help on this.

-Art
 

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

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,798
Members
249,594
Latest member
henrywalsh

Latest Threads

Top