Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2005, 12:56 PM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to albusr
Default xmldocument & xmlnode

i make the return type of a webservice method as XmlDocument
but when i call it return as Xmlnode
how can i make it back to an xml document

I need some help plz
Thank you

 
Old December 20th, 2005, 01:42 PM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to albusr
Default

and how can i get the whole xml document

thanks

 
Old December 20th, 2005, 01:46 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I think you can do something like this:

System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
xmlDoc.AppendChild(xmlDoc.ImportNode(xmlSourceNode , true));

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
XmlDocument SqlType.Xml batott ASP.NET 2.0 Professional 1 February 17th, 2008 05:48 PM
XmlDocument Vs StringBuilder anup_daware C# 4 February 8th, 2007 09:54 AM
ASP/XML Trying to delete a xmlnode Florian_mrt Classic ASP XML 1 March 20th, 2006 02:25 PM
Service returns xmlNode instead of xmlDocument! KC7ZDM .NET Web Services 0 February 18th, 2005 08:18 PM
Getting XPath Expression from XmlDocument ? boemane C# 3 August 31st, 2004 04:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.