Generate xsd from two xml events with different children
Posted: Mon May 19, 2008 2:26 am
I have the following two different xml events that I get:
<ip ipAddress="1.1.1.1" timestamp="2008/05/13 16:57:13.870197">
<ipCreate device="24"/>
</ip>
<ip ipAddress="1.1.1.1" timestamp="2008/05/13 16:57:13.870197">
<ipDelete device="24"/>
</ip>
The <ip> element can have either <ipCreate> or <ipDelete> sub element, but not both. I've tried to combine both xml events into one file and tried to generate an xsd for them, but I get an error that is not mell-formed. Is there a way to generate one xsd file for both events?
Thanks,
tsbasha
<ip ipAddress="1.1.1.1" timestamp="2008/05/13 16:57:13.870197">
<ipCreate device="24"/>
</ip>
<ip ipAddress="1.1.1.1" timestamp="2008/05/13 16:57:13.870197">
<ipDelete device="24"/>
</ip>
The <ip> element can have either <ipCreate> or <ipDelete> sub element, but not both. I've tried to combine both xml events into one file and tried to generate an xsd for them, but I get an error that is not mell-formed. Is there a way to generate one xsd file for both events?
Thanks,
tsbasha