File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSD Conditional

 
M Menezes
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 163
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a solution but Is not very optimal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic