2.3 All Applications Must Handle Optional Header in XML v1.0
Topic Version | 1 | Published | 10/16/2017 | |
For Standard | ETPW20 v1 |
Energistics uses XML version 1.0 and does not plan to update to a later version anytime soon. Section 2.8 of the XML specification (https://www.w3.org/TR/REC-xml/#sec-prolog-dtd ) states:
XML documents should begin with an XML declaration which specifies the version of XML being used.
Example: <?xml version=”1.0” encoding=”UTF-8” standalone=”” ?>
- In XML v1.0, this declaration header is optional. (FYI: In XML version 1.1, this same header was changed to be required.) WITSML-enabled applications must be programmed to work whether or not the optional header is present. Receiver applications must be prepared for either case, and sender applications should follow the W3C guidance and provide it. In the future, the WITSML specification could make it mandatory.
- The standalone parameter is optional.