File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

XSD Conditional

M Menezes

Joined: Apr 18, 2008
Posts: 7

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


<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

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
I agree. Here's the link:
subject: XSD Conditional
It's not a secret anymore!