• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

XML schema

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Im a newbie to XML. I have used XML schema for imposing restrictions. My question is if I have a base schema, is there any way to extend this schema to put in more constraints for your XML document. Also, another question.
Lets say, I have a document
MessageParameters
<MessageType>type="voicemail"
<event>newmail</event>
<condition>sender is Tommy</condition>
<action>delete message</action>
</MessageType>
</MessageParameters>
I have used a schema to restrict( for this example, lets say) which events are allowed, which conditions are allowed etc. But, I did not use the schema for doing a semantic check, like, whether a certain combination of event, condition and action can work or cannot work for my scenario.
Is there a way (Im sure there is. As I mentioned, Im a newbie)to have your schema do a semantic check ?
Thanks
-Bindu
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!