Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: First pass at using a schema

From: "C.W.Holeman II" <cwhii_google_spam@-----.--->
To: NULL
Date: 1/4/2007 11:01:00 AM

"Martin Honnen" <mahotrash@y...> wrote in message
news:459cfbbd$0$5711$9b4e6d93@n......
> C.W.Holeman II wrote:
>
>> <emle xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>      xsi:schemaLocation="noNamespaceSchemaLocation
>> http://emle.sourceforge.net/emle020000/emle.xsd">
>
> This either needs to be
>   xsi:schemaLocation="http://emle.sourceforge.net
> http://emle.sourceforge.net/emle020000/emle.xsd"
> or
>
> xsi:noNamespaceSchemaLocation="http://emle.sourceforge.net/emle020000/emle.xsd"
>
> In your schema you need to decide what you want to do,
> if you want to define elements in the namespace
> http://emle.sourceforge.net/emle020000/emle.xsd, then you need to add
>   elementFormDefault="qualified"
> as an attribute on xsd:schema.
> If you want to define elements in no namespace then remove the
> targetNamespace attribute.

I want to specify what elements are allowed and to constrain them as
defined in .xsd file. Also, I want to not use namespace prefixes at this
time. So, this is waht I am trying:
In 
http://emle.sourceforge.net/emle020000/emle_lab_003_testb.xml:xsi:noNamespaceSchemaLocation="http://emle.sourceforge.net/emle020000/emle_testb.xsd">In 
http://emle.sourceforge.net/emle020000/emle_testb.xsd:<xsd:schema 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns="http://emle.sourceforge.net">I get the same clean results as before. 
Then I again change the main element name from "emle" to "emelxxx" in the 
.xsd fileto force whatever kind of error will happen when the elements in my 
.xml do notmatch the ones defined in the .xsd file. I expect there to be 
some difference but see nochange in behavior. 
http://emle.sourceforge.net/emle020000/emle_lab_003_testxxx.xmlhttp://emle.sourceforge.net/emle020000/emle_testxxx.xsd 




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