You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Olivier Chapiteau <oc...@arkoon.net> on 2007/01/09 12:03:49 UTC

validation after an unexpected element error ?

How to get validation control in elements following an unexpected element ?

In this document all element are mandatories, elementD'content data must a positive integer :
<root>
	<elementA/>
	<elementB/>
	<elementC/>
	<elementD>-1</elementD>
</root>
for this, xmlbeans give the error for elementD : should be positive : that's ok

<root>
	<elementA/>
	<elementC/>
	<elementD>-1</elementD>
</root>
For this xml (elementB removed), xmlbeans validation only tell me about unexpected elementC and unexpected elementD instead of elementB, but no validation message about invalid 
content for elementD.

Validating the second xml with with xmllint (libxml) give the unexpected error, and the elementD, is it possible with xmlbeans ?

thanks,
Olivier,


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org