Z
zmunkz
Does anyone know if an XSD can define tags that match a pattern? I
know I can setup restrictions on the values of a tag, but I want to
control the tag names themselves. For example, I would like this to
validate against my XSD (the child tags are required to start with
"var-" but can end in anything):
<some-parent>
<var-FOO>value</var-FOO>
<var-BAR>value</var-BAR>
</some-parent>
So this one would be no good:
<some-parent>
<FOO>value</FOO>
<va-BAR>value</va-BAR>
</some-parent>
There must be a way to do this, I just can't find it anywhere...
Thanks in advance for the help!
know I can setup restrictions on the values of a tag, but I want to
control the tag names themselves. For example, I would like this to
validate against my XSD (the child tags are required to start with
"var-" but can end in anything):
<some-parent>
<var-FOO>value</var-FOO>
<var-BAR>value</var-BAR>
</some-parent>
So this one would be no good:
<some-parent>
<FOO>value</FOO>
<va-BAR>value</va-BAR>
</some-parent>
There must be a way to do this, I just can't find it anywhere...
Thanks in advance for the help!