Return XML Document from Web Service (.net v2)

Discussion in 'ASP .Net Web Services' started by Andrew, Mar 11, 2009.

  1. Andrew

    Andrew Guest

    Hi All,

    I'm looking for information on returnning XML Documents from a web service.
    Say if you have a string like this -
    <xdoc><child1>1</child><child2>2</child></xdoc>
    Then to convert it to XML you use the XmlDocument.LoadXML.
    How would you return this whole document so that then in your ASP.Net (VB)
    page can use methods like .SelectSingleNode to pick out information.
    I have returned it as a XmlDocument type in the past with ASP but with
    ASP.Net I seem to be having problems with casting?
    Andrew, Mar 11, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony Prichard
    Replies:
    0
    Views:
    718
    Tony Prichard
    Dec 12, 2003
  2. Manish Hatwalne
    Replies:
    1
    Views:
    392
    Martin Honnen
    Jul 13, 2004
  3. Richard A. Wells

    Receive and return bare XML in C#/ASP.NET Web Service

    Richard A. Wells, Dec 12, 2003, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    1,732
  4. R.A.

    how to return xml document from a web service

    R.A., Nov 24, 2004, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    531
    Dan Rogers
    Nov 29, 2004
  5. GH

    How to return XML Document from web service.

    GH, Feb 4, 2007, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    641
    Scott M.
    Feb 5, 2007
Loading...

Share This Page