Y
Hacker News
new
|
ask
|
show
|
jobs
by
oever
2014 days ago
DTD does not know about namespaces and checks against "prefix:local-name".
E.g. the xhtml dtd will not accept this:
<h:html xmlns:h="http://www.w3.org/1999/xhtml"/>
If you want to change prefixes, use XML Schema or Relax NG.
2 comments
Ygg2
2013 days ago
DTD is the devil spawn. Devil here being massive security vulnerabilities.
link
lyxsus
2014 days ago
I would say use XML Schema at least. DTD looks alien to XML anyway.
link