Razvan wrote:
Hi
After playing with XML Spy I saw that in DTDs the element of type
"any" could contain text and any element that was declared in the DTD.
In XML Schema an element of type anyType can contain *any* kind of
tags, even tags that were not previously defined in the XML Schema.
I am reading the book "Professional XML" that claims the 2
declarations are completely identical. Where is the truth ?
In the XML Specification, under section 3 Logical Structures, production 39,
validity constraint 4:
4. The declaration matches ANY, and the content (after replacing any
entity references with their replacement text) consists of character
data and child elements whose types have been declared.
Do W3C Schemas not necessarily have to describe valid documents?
///Peter
--
"The cat in the box is both a wave and a particle"
-- Terry Pratchett, introducing quantum physics in _The Authentic Cat_