Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a webservice that is returning an XmlDocument to the calling code.

When I set a web reference I get a proxy that returns XmlNode element. No big deal, I take that node and it becomes an xmlDoc and everything is cool.

 

The problem I am having is that sometimes I malform the xmlDoc. This gives me an ugly result in the client. I'd like to form my xml well. If there was a way I could debug and see what the xml is I could see what is wrong with it.

 

Trouble is I am using a stream, not an xml file. I create an xmlWriter and use the stream to create the doc. When I am done I send the stream to a xmlDoc and then that gets returned to the client (where it blows apart). Is there a way i can intercept the xml from the stream and actually see it so I know what is wrong with it?

 

Working with xml in .NET is sure easy, but the ease doesn't replace not knowing any xml. I'm new to this and the whole idea of just making sh*t up in xml and it working is pretty far out.

Wanna-Be C# Superstar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...