Is it legal xml syntax to add an additional attribute (to indicate a file-type, for instance) to the xml declaration at the top of an xml file?
(See, e.g., What is on the first line of an XML document?)
Is it legal xml syntax to add an additional attribute (to indicate a file-type, for instance) to the xml declaration at the top of an xml file?
(See, e.g., What is on the first line of an XML document?)
Copyright © 2021 Jogjafile Inc.
It took me a bit of digging to verify that the answer is NO: According to the specification, the xml declaration can only include the
xml version,encoding, andstandalone document declaration.