A
Andrew
Antony (4:26 PM) :
Hello all !
I have a problem with XML schema.
My XML document which I need to be validated
can be one of the following two types:
1st type is
<?xml version="1.0"?>
<response>
<msg_id>100</msg_id>
<command>Command1</command>
<time>100</time>
<b>text</b>
</response>
2nd type is
<?xml version="1.0"?>
<response>
<msg_id>100</msg__id>
<command>Command2</command>
<sometag>content</sometag>
<time>789012</time>
<a>text</a>
</response>
Note that content of the "command" element
is used to determine the rest of elements. Thus
"Command1" means that there should be "time" and "b" elements,
and "Command2" means that there should be "sometag", "time", and "a"
elements.
When trying to load the schema both xerces and msxml parsers
return me error message: "Unique Particle Attribution rule".
How should correct schema look ?
Can anyone help ?
Thanks in advance.
Hello all !
I have a problem with XML schema.
My XML document which I need to be validated
can be one of the following two types:
1st type is
<?xml version="1.0"?>
<response>
<msg_id>100</msg_id>
<command>Command1</command>
<time>100</time>
<b>text</b>
</response>
2nd type is
<?xml version="1.0"?>
<response>
<msg_id>100</msg__id>
<command>Command2</command>
<sometag>content</sometag>
<time>789012</time>
<a>text</a>
</response>
Note that content of the "command" element
is used to determine the rest of elements. Thus
"Command1" means that there should be "time" and "b" elements,
and "Command2" means that there should be "sometag", "time", and "a"
elements.
When trying to load the schema both xerces and msxml parsers
return me error message: "Unique Particle Attribution rule".
How should correct schema look ?
Can anyone help ?
Thanks in advance.