473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Convert DOMDocument to System.Xml.Document?

Newbie question: Any easy way to convert a DOMDocument to a
System.Xml.Document?

Dim DOMDocument As DOMDocument40

to this

Dim xmlDoc As System.Xml.XmlDocument

Thanks,

Dean Slindee
Nov 12 '05 #1
3 5601
The easiest way might be to output the XML from the DOMDocument (I can't
remember which property/method does this) and load it into the LoadXml
method on the XmlDocument object.

"Dean Slindee" <sl*****@mindspring.com> wrote in message
news:Od**************@tk2msftngp13.phx.gbl...
Newbie question: Any easy way to convert a DOMDocument to a
System.Xml.Document?

Dim DOMDocument As DOMDocument40

to this

Dim xmlDoc As System.Xml.XmlDocument

Thanks,

Dean Slindee

Nov 12 '05 #2


Dean Slindee wrote:
Newbie question: Any easy way to convert a DOMDocument to a
System.Xml.Document?

Dim DOMDocument As DOMDocument40

to this

Dim xmlDoc As System.Xml.XmlDocument


I don't understand why you need to use two different XML imlementations
in one application (after all the XML format should allow you to use any
parser) but it seems that
xmlDoc.LoadXml(DOMDocument.xml)
should work.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #3
Yes, that did the trick. By way of explanation: communicating with eBay is
done thru DOMDocument, but as a .NET developer I would prefer to use
system.xml as much as possible, so I want to convert from DOM up front.
Thanks.
Dean Slindee
"Martin Honnen" <Ma***********@t-online.de> wrote in message
news:eZ**************@TK2MSFTNGP10.phx.gbl...


Dean Slindee wrote:
Newbie question: Any easy way to convert a DOMDocument to a
System.Xml.Document?

Dim DOMDocument As DOMDocument40

to this

Dim xmlDoc As System.Xml.XmlDocument


I don't understand why you need to use two different XML imlementations
in one application (after all the XML format should allow you to use any
parser) but it seems that
xmlDoc.LoadXml(DOMDocument.xml)
should work.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mini Mouse | last post by:
Hiya folks, I'm getting the following error(s) below and I'm at a bit of a loss as to how to correct it. When I give it a parameter it then complains it needs two parameters and the second one...
3
by: Roger That | last post by:
Hi, I am trying to use the function "CreateStreamOnHGlobal" from python code (I need to pass an IStream object to MSXML, like I do in C++ code). I was able to retrieve a pointer on the IStream...
0
by: Nicolas Guilhot | last post by:
Hi all ! I have a multi-page Tiff image file that I want to convert to PDF. To do so I am using iText library. The conversion is working, but the code execution is very different according to...
2
by: Brian | last post by:
I have an XML doc that parses OK with DomDocument from MSXML2, but it fails with XMLDocument in DotNet. The error says something about mismatching opening and closing tags. Any tips? ...
1
by: WUV999U | last post by:
Hi I am fairly new to VBA and want to know how I can convert or I mean parse the XML file and convert to an access database. Please help. I greatly appreciate your time and help. I would be...
3
by: Patrick Olurotimi Ige | last post by:
compiling the code below i get the error:- Cannot implicitly convert type 'object'to 'System.Xml.XmlDocument' I'm getting the error on this line:- myXml.Document =...
0
by: ksampson | last post by:
I would like to create a class that acts like an Xml document so that I can pass it through an XSLT transform. But, there is never any Document created. Basically, what I'm trying to do, is a...
2
by: JÿGius³ vs ::NRG::ius | last post by:
Hi all. I have this script ----------------------------------------------------------- <?php $doc = new DOMDocument(); $doc->load('books.xml'); echo $doc->saveXML(); ?>
2
by: orange123 | last post by:
Hi Can someone help me please? (I am doing all this code in VB.NET) I have been trying to convert an existing document (word, excel, pdf, powerpoint, etc) to an image field) in my sql server...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.