Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

xml dom object

Posted on 2001-07-30
5
Medium Priority
?
140 Views
Last Modified: 2009-12-16
Can you save an xmldomdocument as as string?
0
Comment
Question by:inges
5 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6334867
Try,

Dim xmlDoc As String
Dim strXML As String

...

strXML = xmlDoc.xml
0
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6334905
<ping>

<<Correction>>

Dim xmlDoc As DOMDocument

0
 
LVL 8

Accepted Solution

by:
Dave_Greene earned 800 total points
ID: 6335059
Dim oDoc As New DOMDocument

oDoc.load "c:\test.xml"  'load the DOM

strXML = oDoc.xml   'Put out the string

Msgbox strXML   'display contents

Set oDoc = nothing   'kill the DOM

oDoc.LoadXML strXML   're-load the DOM from string contents

MsgBox oDoc.xml   'display

0
 
LVL 5

Expert Comment

by:ianouii
ID: 6336448
are u referring to save it into the db as a string?

Yes, u can, do as Dave_Greene solution. when u want to insert it into the db, for instance, MSSQL 7.0, just make your field to be ntext as XML string is really huge....

good luck.

0
 

Author Comment

by:inges
ID: 6336873
Thanks !!! Just what I needed!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question