[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] XML Newbie Question
- From: "Andrew Welch" <andrew.j.welch@gmail.com>
- To: "Arun Menon" <kumarmenon@yahoo.com>
- Date: Mon, 2 Jun 2008 17:19:05 +0100
In your schema <callMethod> is defined as:
<xsd:element name="callMethod">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="returnCode">
...
<xsd:element name="errors" minOccurs="0" >
...
<xsd:element name="params">
...but in your XML the elements are in this order:
<callMethod>
<returnCode>..
<params>..
<errors>..
So basically <params> and <errors> are in the wrong order - swap them
around in either the XML or the schema and the sample will validate.
2008/6/2 Arun Menon <kumarmenon@yahoo.com>:
>
> Hi
>
> I was wondering if someonw could help out a noob.. For some reason my file
> is not validating thru Oxygen . I have tried a bunch of different things but
> it did not work.
>
> Does this error mean anything to you guys.
>
> SystemID: C:\workspace\TestXML\output.xml
> Location: 45:4
> Description: cvc-complex-type.2.4.d: Invalid content was found starting with
> element 'errors'. No child element is expected at this point.
> URL: http://www.w3.org/TR/xmlschema-1/#cvc-complex-type
>
> Please see attached my xsd and xml
>
> Would really appreciate it what is wrong with xsd
>
> -Arun
>
>
> Arun Menon
> 203.796.0069
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]