Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: DTD Any vs. XML Schema anyType

From: Peter Flynn <peter.no-sp@-.--------.-->
To: NULL
Date: 3/2/2005 12:07:00 AM
Razvan wrote:

> In XMLSpy">XMLSpy 2005 I tried the above. When DTDs are used for validation
> only elements are that are declared are allowed inside the "ANY"
> element. 

That is correct.

> However, if I try the same with an associated XML Schema
> anything is permitted inside an element of type "anyType". Is XMLSpy">XMLSpy
> broken ?

It sounds like it, but I don't know if W3C Schemas follow the same rule
as DTDs on this point. My $0.02 is that they should, but doubtless 
someone can come up with a convincing reason why they shouldn't. 

///Peter
-- 
"The cat in the box is both a wave and a particle"
      -- Terry Pratchett, introducing quantum physics in _The Authentic Cat_


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent