Solved

xml dom object

Posted on 2001-07-30
5
132 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 200 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now