What is the purpose of ANY keyword ?

Adam M Donahue amd0978 at acf3.nyu.edu
Wed Feb 3 20:40:44 GMT 1999


Not necessarily.  

<?xml version="1.0" ?>
<!DOCTYPE example [
<!ELEMENT example ANY>
<!ELEMENT foo (bar+)>
<!ELEMENT bar (#PCDATA)>
]>

<example>
	<foo></foo>
	<bar></bar>
</example>

Adam

On Wed, 3 Feb 1999, Shekhar Kshirsagar wrote:

> Hi,
> 
> What's the purpose of ANY keyword in an otherwise strictly formed 
> syntax of XML ?
> 
> Also is this right if I say that :
> 
> "If a top level element of a DTD has a content specifier -
> ANY, all the documents will be well-formed and VALID,
> as far as they contain the elements from that DTD in any order."
> 
> 
> Thanks & Regards,
> Shekhar Kshirsagar
> Nortel Networks.
> 
> 
> 
> 
> 
> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
> To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
> 
> 


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list