posted 16 years ago
I was tryin to write an schema for the following scenario:
-> The name and index value should be unique in the below sample xml code:
<?xml version="1.0" encoding="UTF-8"?>
<eventlogs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="eventlogs.xsd" version="1.0">
<eventlog name="MakeCall">
<field name ="COI" index="2">
<expr dynamictag="GetData" data="COI"/>
</field>
<field name ="BILLINGNUMBER" index="4">
<expr dynamictag="GetData" data="billingnumber"/>
</field>
<field name ="BILLINGNUMBER" index="4"> <!--This should give error-->
<expr dynamictag=GetData" data="abc"/>
</field>
</eventlog>
</eventlogs>
could any one pls suggest me how can I achieve this?