xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajan Gupta <rajangu...@rocketmail.com>
Subject Re: XMLSchema: Problem with <xsd:any>
Date Thu, 05 Jul 2001 12:31:01 GMT
I tried this, but processContents="skip" does not even check for
well-formdness of the document which is not what should be the case.
The parser should check that the document is well formed.
--- Bjoern Martin <mabj0011@fh-karlsruhe.de> wrote:
> >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.
> [...]
> 
> You might want to subscribe to an xml schema list from w3.org for
> this 
> type of question. See http://www.w3.org/Mail/Lists.html for a full 
> list.
> 
> Your schema ould look like this:
> 
> <?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="Application">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="Host" type="xsd:string"/>
> <xsd:any namespace="##any" minOccurs="1" maxOccurs="unbounded" 
> processContents="skip"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> 
> Regards.
> 
> --
> Bjoern Martin                                bjoern.martin@gmx.net
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
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


Mime
View raw message