Vedr.: Re: [xsd-users] Missing elements after serialization using XSD 3.0.0

ulbo at nykredit.dk ulbo at nykredit.dk
Fri Sep 21 04:07:39 EDT 2007


Hi again Boris

I have found the error - in my code. The element INFO-BEKR in the xml 
string is not part of the schema I'm using. It is an error in my xslt 
transformation - the correct name for the element is INFO-BEKR1. In XSD 
2.3.1 the element the element is just ignored by the reader (as in the 
example I gave you). In XSD 3.0.0 the rest of the elements at that level 
is ignored by the reader, and the error became more visible. Normaly I 
don't validate against schemas at this point as it seems XSD even with 
flag dont_validate does a good job validating the structure of the xml, 
and raising exceptions. But this wrong optional element managed to slip 
through.

My mistake - sorry for the inconvenience!

Ulrich Borowiec 




Boris Kolpackov <boris at codesynthesis.com> 
20-09-2007 17:23

Til
ulbo at nykredit.dk
cc
xsd-users at codesynthesis.com
Emne
Re: [xsd-users] Missing elements after serialization using XSD  3.0.0






Hi Ulrich,

ulbo at nykredit.dk <ulbo at nykredit.dk> writes:

> So, elements are missing (removed) after serialization - or I'm doing
> something wrong. This is only a problem in XSD 3.0.0 - in XSD 2.3.1 it
> works fine.

Hm, interesting. Can you send me the schema so that I can debug this
problem? You can send it to me directly if you don't want to make
it public.

Thanks
                 Boris




More information about the xsd-users mailing list