A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
Help with choice & group tags
Joined: Jul 20, 2005
Aug 15, 2005 20:43:00
Need some help with XML validation. A valid xml file should look like (a) or (b) or (c)..
That is, either it should be <apples> tag or <oranges> tag or (<apples> AND <oranges> tags).
I tried the following xsd schema, but one
case fails (two <apples> is valid with this xsd, which is incorrect)
<choice minOccurs="1" maxOccurs="2">
Can this requirement be met using any other tags ? Any help is appreciated.
It is sorta covered in the
JavaRanch Style Guide
subject: Help with choice & group tags
JSTL : not working with JSP 2.0
XML / XSL problem
Importing multiple external XSD files
struts 2 s:radio tag
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013