 |
 |
 |
----- Original Message From: "REV Tamas"
> Hi Pete,
>
> Thank you for your reply. It made me realize that I omitted some important
> data: the schema has elementFormDefault="qualified" and
> attributeFormDefault="unqualified":
>
> <xsd:schema xmlns="ProprietaryNamespace" targetNamespace="
> AnotherProprietaryNamespace"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified"
> attributeFormDefault="unqualified"
> xmlns:abc="YetAnotherPropriateryNamespace">
> ...
> <xsd:complexType name="complexTypeOne">
> <xsd:sequence>
> ...
> <xsd:element name="SubElementWithoutPrefix"
> type="ElementTypeWithoutPrefix" /> <!-- a line with a problem -->
> </xsd:sequence>
> </xsd:complexType>
> ...
> </xsd:schema>
>
> This is the schema "as is" the customer gave us. This schema belongs to
> the
> interface definition of a webservice.
> One of our tasks is to validate the messages sent to this interface. The
> customer gave us test messages too.
>
> ...
>
>
> The corresponding part looks like that:
> <Soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns1="AnotherProprietaryNamespace"> <!-- ns1 matches the
> targetNamespace of the schema -->
> ...
> <ns1:ComplexEelement>
> ...
> <ns1:SubElementWithoutPrefix>trallala</ns1:SubElementWithoutPrefix>
> ...
> </ns1:ComplexElement>
>
> If I understand it well, this message excrept conforms to the schema
> excrept, because elementFormDefault="qualified" means that the elements
> conforming to this schema must be qualified with the schemas
> targetNamspace.
Hi Tama,
This looks right to me.
HTH,
Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info
(cc-ed to xml-dev list in case others want to follow updates.)
_______________________________________________________________________
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
|
 | 

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