[xsd-users] Validation results not as expected.
Boris Kolpackov
boris at codesynthesis.com
Mon Jan 25 15:06:11 EST 2010
Hi Stephen,
Stephen James <Stephen.James at genband.com> writes:
> The following xml does not throw an exception: Note the first
> <component> is not terminated
I tried to reproduce this by modifying the hello.xml file in the
examples/cxx/tree/hello like this (that is, unterminated greeting
element):
<hello xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="hello.xsd">
<greeting>Hello
<name>sun</name>
<name>moon</name>
<name>world</name>
</hello>
I tried with validation enabled and disabled and in both cases
I get:
bad.xml:20:3 error: expected end of tag 'greeting'
So there has to be something special about the way you do parsing.
Can you show the relevant code or even better try to modify one of
the example to reproduce the problem?
Boris
More information about the xsd-users
mailing list