A valid XML file requires a xml header.
However, if I send the XML over a RESTFul API, do I still have to set the header? At least firefox doesn’t complain, but this might not be a valid metric.
Thank you, Johann
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.
If you use XML over REST then your XML should be fully compliant to be as interoperable as possible:
http://www.w3.org/TR/xml/#sec-prolog-dtd
The standard say “should“, not “must” which makes it optional but advisable as a good practice.