Beezer
07-08-2008, 11:03 AM
Hi,
Bit of a noob to XML, and I'm a bit confused.
Let's say you're trying to create a schema for quiz metadata and one of the elements is 'subject'. This could potentially be picked from a fairly complex classification of subjects arranged in a tree.
Not quite sure what the XML would look like. Is it:
<subject>
<science>
<biology>
<cellularBiology>
</cellularBiology>
</biology>
</science>
</subject>
That seems wrong because there is no value?
If this is right, how is it defined in the schema? Do you define empty elements and not use Enumerations?
Perhaps in my schema there is the simple element <subject> and this references an XML file with the subject taxonomy?
Or perhaps cellular biology is one of many values within the element <biology>???
I'm sure the answer is fairly obvious. Perhaps someone can set me straight and maybe link me to some suitable reading material. I have read quite a bit on XML and can create basic schemas, but it seems like there's something fundamental that I'm missing!
thanks.
Bit of a noob to XML, and I'm a bit confused.
Let's say you're trying to create a schema for quiz metadata and one of the elements is 'subject'. This could potentially be picked from a fairly complex classification of subjects arranged in a tree.
Not quite sure what the XML would look like. Is it:
<subject>
<science>
<biology>
<cellularBiology>
</cellularBiology>
</biology>
</science>
</subject>
That seems wrong because there is no value?
If this is right, how is it defined in the schema? Do you define empty elements and not use Enumerations?
Perhaps in my schema there is the simple element <subject> and this references an XML file with the subject taxonomy?
Or perhaps cellular biology is one of many values within the element <biology>???
I'm sure the answer is fairly obvious. Perhaps someone can set me straight and maybe link me to some suitable reading material. I have read quite a bit on XML and can create basic schemas, but it seems like there's something fundamental that I'm missing!
thanks.