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" "http://plugins.intellij.net/plugin.dtd">
<idea-plugin url="..." />

(XmlTag | XmlAttribute).getNamespace() to return "http://plugins.intellij.net/plugin.dtd"
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?

Sascha

1 comment
Comment actions Permalink

Can anybody comment on this, please?

Thx,
Sascha

0

Please sign in to leave a comment.