Re: xmerl xsd validation error

Anthony Ramine <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
Validate how?

Could you give a sample of an XML file to match against these? You didn’t provide a definition for someType either.

-- 
Anthony Ramine

Le 21 mai 2014 à 16:34, jan_kowalski6669 <[email protected]> a écrit :

> This validates ok:
> 
> <element name="foo">
>     <complexType>
>         <sequence>
>             <element name="somename" minOccurs="1" maxOccurs="10" type="someType"></element>
>         </sequence>
>     </complexType>
>     <unique name="bar">
>         <selector xpath="somename"></selector>
>         <field xpath="."></field>
>     </unique>
> </element>
> 
> But this not:
> 
> <element name="foo" type="someComplexName">
>     <unique name="bar">
>         <selector xpath="somename"></selector>
>         <field xpath="."></field>
>     </unique>
> </element>
> 
> <complexType name="someComplexName">
>     <sequence>
>         <element name="somename" minOccurs="1" maxOccurs="10" type="someType"></element>
>     </sequence>
> </complexType>
> 
> Those xsd's are equal, but not for xmerl.
> _______________________________________________
> erlang-bugs mailing list
> [email protected]
> http://erlang.org/mailman/listinfo/erlang-bugs

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.