Is a namespace definition required within an XML document where prefixes are used for the document to be considered valid and compliant?
Take the following code for example, is this valid and compliant?
<?xml version="1.0"?>
<ns:root_element>
<ns:some_element>Some data</ns:some_element>
<ns:another_element>Some more data</ns:another_element>
</ns:root_element>
(I am aware that the correct way to define the namespace is using the xmlns:ns=""
attribute).