• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Does XML/DTD/SCHEMAS have condition statement?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. You can XSL or other XML parser for this.(post processing).
reply
    Bookmark Topic Watch Topic
  • New Topic