DataSet.GetXml() appends \r\n to every tag in return string - .NET 1.1

E

Erik Miller

Can someone help me understand why in .NET 1.0 - DataSet.GetXml()
returns a string without \r\n after every tag, but in 1.1 it appends a
\r\n to every tag.

This is a causing problems when I pass that string returned from the
function to a stored procedure to be parsed into a TEMP table I get an
error. I can do a string.Replace("\r\n", string.Empty) to remove this
from my string, but I am wondering why this was done in the first
place. I see no added value to a XML string that cannot be parsed.

Thanks in advance!

Erik
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top