Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] XML Newbie Question

From: "Andrew Welch" <andrew.j.welch@-----.--->
To: "Arun Menon" <kumarmenon@-----.--->
Date: 6/2/2008 4:19:00 PM
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@y...>:
>
> 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@l...
> subscribe: xml-dev-subscribe@l...
> 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent