It is standard for a Web Service that returns XML to return it with indentation?
Also, is it standard to have new lines in the XML that is returned, or can it just be without indentation/new lines completely?
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.
I’m not sure that it’s standard, but generally a webservice will return XML that is not formatted or indented. XML is intended to be machine readable, so whitespace and formatting is not an issue. If you need to read the XML yourself there are many tools and browser plugins that will help format it for you.