Implicit namespace in XML documents?

I have observed that as of late IDEA assigns an implicit default namespace to XML
elements (XmlTag & XmlAttribute) that are part of an XML document that have a DTD
assigned. The default namespace is then the system-id of the DTD.

That causes in an XML document like this

<!DOCTYPE idea-plugin PUBLIC "Plugin/DTD" "">
<idea-plugin url="..." />

(XmlTag | XmlAttribute).getNamespace() to return ""
which is rather incorrect because the default namespace of a document should, unless
specified by an xmlns="..." attribute, be the empty string.

Is this something intentional or maybe a bug?


1 comment
Comment actions Permalink

Can anybody comment on this, please?



Please sign in to leave a comment.