xml - Default value of xmlns? -
consider have following xml document
<?xml version="1.0" encoding="utf-8"?> <root> <child /> </root>
as can see root not have default namespace specification. default namespace specified attribute xmlns.
the question default namespace of such xml document?
if post answer please include reference information taken from, e.g. w3c.
there no default schema or namespace in xml.
if not declare namespace in xml document, has none.
from spec:
for name n not in namespace, namespace name has no value.
Comments
Post a Comment