xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajan Gupta <rajangu...@rocketmail.com>
Subject XMLSchema: Problem with <xsd:any>
Date Wed, 04 Jul 2001 02:06:14 GMT
Hi! All,
I want to create a document which allows the instance to have any
elements which the author wants to have in his document e.g.

<?xml version="1.0"?>
<xsd:schema ..../>

<xsd:element name="Application" minOccurs='1' maxOccurs='1'>
   <xsd:element name="Host" type="xsd:string"/>
   <xsd:any minOccurs='0'/>

I would like the above schema to validate the following type of
instance documents: I do not know what the creator of the document
might use as the name of the next after element it could be "any" name
he chooses to have. After reading the specs I thougt <xsd:any> will do
the trick, but Xerces-J 2.1.0 does not behave as I expected it to. 

Am I misunderstanding <xsd:any>, if yes (which is most likely true:),
can anyone tell me how to do it.


or even 

Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail

In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message