This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Does XML/DTD/SCHEMAS have condition statement? 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 "Does XML/DTD/SCHEMAS have condition statement?" Watch "Does XML/DTD/SCHEMAS have condition statement?" New topic
Author

Does XML/DTD/SCHEMAS have condition statement?

Y. Candy Chen
Greenhorn

Joined: Sep 16, 2003
Posts: 2
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

Joined: Jul 13, 2001
Posts: 3150
No. You can XSL or other XML parser for this.(post processing).
 
Have you checked out Aspose?
 
subject: Does XML/DTD/SCHEMAS have condition statement?
 
It's not a secret anymore!