[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: trouble with 'all' in schema :(


seppo smolander
Seppo :

I think, this is a Spy version probleme, because I did it using the version
4.1 and not problem.

----- Original Message -----
From: "Seppo Smolander" <seppo.smolander@q...>
To: <xml-dev@l...>
Sent: Thursday, November 29, 2001 4:23 PM
Subject:  trouble with 'all' in schema :(


> Hi!
>
> When validating the xml document (with xmlspy 3.5)
> i get an error:
>
> "This file is not valid: Mandatory elements expected in 'testdoc' after
> 'A3': A1,A2,A3."
>
> Whats wrong with this ??? this must be so simple problem that i dont get
>
> it :(
> (dont want to use 'sequence' because i dont want to restrict the order
> ...)
>
> changed the elementFormDefault to "unqualified" but that did not help
> .... :(
>
>     S.S
>
>
> testdoc.xml
> ---------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <testdoc xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="E:\temp\testdoc.xsd">
>  <A1>1</A1>
>  <A2>2</A2>
>  <A3>3</A3>
> </testdoc>
>
> testdoc.xsd
> ---------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
> elementFormDefault="qualified">
>  <xsd:element name="testdoc">
>   <xsd:complexType>
>    <xsd:all>
>     <xsd:element name="A1" type="xsd:string"/>
>     <xsd:element name="A2" type="xsd:string"/>
>     <xsd:element name="A3" type="xsd:string"/>
>    </xsd:all>
>   </xsd:complexType>
>  </xsd:element>
> </xsd:schema>
>
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.