What is the best what to handle carriage returns in xml formatting with xml?
<myxml>
<mydata>
</mydata>
</myxml>
<myxml><mydata></mydata></myxml>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It doesn’t make any difference.
If you want the XML to be smaller, don’t add newlines.
If you want it to be human-readable, add newlines and indentation.
LINQ to XML will format the XML with tabs and newlines by default; to prevent this, call
element.ToString(SaveOptions.DisableFormatting)