
Signature
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
Ok,
So what is your suggestion, I have to validate XML on Null in some important
tags. I can parse XML and do validation myself, but why do we need Schema?
Looks like you are Russian?
Leonid
> > Question to the Schema pro:
> >
[quoted text clipped - 9 lines]
> http://www.tkachenko.com/blog
> Multiconn Technologies, Israel
Oleg Tkachenko - 09 Oct 2003 16:41 GMT
> So what is your suggestion, I have to validate XML on Null in some important
> tags. I can parse XML and do validation myself, but why do we need Schema?
The only way of using nillable schema stuff is to place xsi:nil attribute into
your instance XML. If input XML is out of your control and you need to
validate empty values instead, that's trivial - just define in schema the
element cannot have empty content, that's it, say
<xs:element name="foo">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
> Looks like you are Russian?
Not exactly :)

Signature
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel