Solved

xml dom object

Posted on 2001-07-30
5
136 Views
Last Modified: 2009-12-16
Can you save an xmldomdocument as as string?
0
Comment
Question by:inges
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

751 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