File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes XSD Conditional Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSD Conditional" Watch "XSD Conditional" New topic
Author

XSD Conditional

M Menezes
Greenhorn

Joined: Apr 18, 2008
Posts: 7
Hi,

I'm trying to make a conditional xsd to verify the contents and depending on the content some tags are mandatory.


example

<type>ID</ type>

So would have to check that the value of the tag type ID is obliged to inform the numberID and if the value of the tag type is PK is obliged to inform the numberPK

<numberID> </ numberID>


I tried everything and nothing yet ... ever used Schematron as nothing

I help you

Hugs
Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
I have a solution but Is not very optimal.


I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XSD Conditional