Schema for a given XML construct
-
Hi, I'm a bit new to XML schemas and I've run into a scenario that I am unable to discover how to describe in an XML schema. I need to have a shema describe the following two document scenarios (Simplified from my real project) <root> <header> header elements here </header> <detailedinfo> detailed information here </detailedinfo1> </root> <root> <header> header elements here </header> <differentinfo> different detailed information here </differentinfo> </root> I actually have several different types of detailed information that I need to be able to optionally have in the XML. I know that I can allow for the different information with a choice, but I can not discover how to get the header information into the schema. One other thing, the hearer must be optional as well. Thanks in advance!