I think the security concerns over external parsed entities are probably one of the major factors that have led people to seek alternatives to XML. In addition, DTDs and entities are an interoperability headache because many XML parsers chose not to implement that part of the spec,
There's a lot of truth in this, but with XML we've learned that "adding features later" only works if all the popular implementations get updated; and there's no guarantee that will happen. As regards the whitespace issue, I suspect the problem is that the SGML and XML designers never really imagined how popular XML would become for pure data interchange applications, where it's natural to assume that whitespace (as a sibling of an element node) is insignificant, which in turn means that tools reformatting XML by adding indentation tend to assume that whitespace can be freely added and removed. Michael Kay Saxonica |