Solved

xml dom object

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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month6 days, 9 hours left to enroll

636 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