Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does XML/DTD/SCHEMAS have condition statement?

 
Y. Candy Chen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
Does anyone can help me? OR, is there any recource I can use?
I would like to know if I can include any logic and condition while I define a DTD/SCHEMAS for XML documents. For example, if the value of element <student> is CANDY, then the value of the following tag <course> cannot be ENGLISH. Or, if the value of the element <total> is bigger than 10, then the next element should be <bonus>, if the value of <total> is bigger than 100, the the next element should be <super bonus>, and if the value of <total> is ...... Something like above for multiple condition statements in DTD or schemas?
Thank you very much.
Candy
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You can XSL or other XML parser for this.(post processing).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic