M
mhuhn.de
I am using XML Schema for quite a while but haven't written a single
line of Relax NG yet.
For what I know, I cannot define static content within an XML Schema.
For example, I have the following structure:
<colors>
<color>green</color>
<color>red</color>
</colors>
With XML-Schema, I can say colors should have to elements of type
color, and color can contain "green" or "red". But I cannot say that
the content has to be exactly as posted above. Is this correct?
Is there a way to do this in Relax NG?
I need it for more levels than just one. I want to be able to define a
whole XML-Document within the "Schema", so only a document with exactly
that content will be valid.
line of Relax NG yet.
For what I know, I cannot define static content within an XML Schema.
For example, I have the following structure:
<colors>
<color>green</color>
<color>red</color>
</colors>
With XML-Schema, I can say colors should have to elements of type
color, and color can contain "green" or "red". But I cannot say that
the content has to be exactly as posted above. Is this correct?
Is there a way to do this in Relax NG?
I need it for more levels than just one. I want to be able to define a
whole XML-Document within the "Schema", so only a document with exactly
that content will be valid.