473,796 Members | 2,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert DOMDocument to System.Xml.Docu ment?

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

Dim DOMDocument As DOMDocument40

to this

Dim xmlDoc As System.Xml.XmlD ocument

Thanks,

Dean Slindee
Nov 12 '05 #1
3 5634
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*****@mindsp ring.com> wrote in message
news:Od******** ******@tk2msftn gp13.phx.gbl...
Newbie question: Any easy way to convert a DOMDocument to a
System.Xml.Docu ment?

Dim DOMDocument As DOMDocument40

to this

Dim xmlDoc As System.Xml.XmlD ocument

Thanks,

Dean Slindee

Nov 12 '05 #2


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

Dim DOMDocument As DOMDocument40

to this

Dim xmlDoc As System.Xml.XmlD ocument


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******** ******@TK2MSFTN GP10.phx.gbl...


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

Dim DOMDocument As DOMDocument40

to this

Dim xmlDoc As System.Xml.XmlD ocument


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
12864
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 being an integer or something like that. Warning: domdocument() expects at least 1 parameter, 0 given in orders.php on line 157
3
2787
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 object in this way: from ctypes import * stream = c_int()
0
18058
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 wich iTextSharp.text.Image.getInstance(...) signature I am using : - using code 1 below, the conversion is fast enough but the resulting PDF file is too big (1 817ko sample Tiff file is converted in less than 30 seconds to a 2 764ko PDF file) -...
2
1422
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? Thanks, Brian
1
6166
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 glad to have ur answers ASAP. Thanks a lot
3
6072
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 = getXML("http://www.crn.com.au/rss.aspx?SCID=9"); Any ideas?
0
1254
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 virtual XML layer over a persistence framework that allows you to access a database with XPath queries. I've already done something like this in another project and language, but, it's too custom to pass into an XSLT transform. Also, the database...
2
9130
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
5308
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 database. I then need to be able to pull out the data from the image field and open the document. So far I have the following code:
0
9679
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10453
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.