HighTechTalks DotNet Forums  

Need Help, Returning DOCTYPE with web service XML

Dotnet XML microsoft.public.dotnet.xml


Discuss Need Help, Returning DOCTYPE with web service XML in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
missiontrip2007@gmail.com
 
Posts: n/a

Default Need Help, Returning DOCTYPE with web service XML - 09-04-2007 , 11:54 AM






I cannot find how to do this, hopefully someone can help and soon!

I have a web service (in c#) that returns and XML document, but the
Doctype is stripped out on the return and I cannot figure out why.

Here is a striped down demo.

[WebMethod]
public XmlDocument cxmlsetup()
{

XmlDocument sendxml = new XmlDocument();

string xmlstring= "" +

"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<!DOCTYPE cXML SYSTEM \"http://xml.cxml.org/schemas/cXML/1.2.011/
cXML.dtd\">" +
"<test>test here</test>";

sendxml.LoadXml(xmlstring);

return sendxml;


}

But when the XML is returned it has the xml line and the test line no
Doctype. When debugging I see the doctype is listed in the sendxml
object but what can I do to get it to return that with the reset of
the xml via the webservice?!!?

Thanks


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.