EDN Admin
Well-known member
Hi everybody
I have a little problem with my xml schema. I need to have an unique attribute in my xml file, unfortunatley it doesnt work like I want to. Here is the schema:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; " <span style="color:Red; encoding<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UTF-8<span style="color:Black; "<span style="color:Blue; ?>
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; schema <span style="color:Red; xmlns:xs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.w3.org/2001/XMLSchema<span style="color:Black; " <span style="color:Red; targetNamespace<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; DriverFlags<span style="color:Black; "
<span style="color:Red; elementFormDefault<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; qualified<span style="color:Black; " <span style="color:Red; attributeFormDefault<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unqualified<span style="color:Black; " <span style="color:Red; xmlns<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; DriverFlags<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Systems<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; System<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SystemType<span style="color:Black; " <span style="color:Red; minOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; maxOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unbounded<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UnqRegType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; selector <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; ./*<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; field <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; @type<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Unqe<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; selector <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; System/RegKeys/Add<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; field <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; @key<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UnqType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; selector <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; ./*<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; field <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; @type<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element<span style="color:Blue; >
<span style="color:Green; <!-- Simple Type Definition -->
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attributeGroup <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; QueryAttribute<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; query<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; key<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; value<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; comparsion<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; simpleType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; restriction <span style="color:Red; base<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:short<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; minInclusive <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; maxInclusive <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; restriction<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; simpleType<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attributeGroup<span style="color:Blue; >
<span style="color:Green; <!-- Complex Type Definition -->
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; AddType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; key<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:string<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; required<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; value<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:string<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; required<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; IdentityType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attributeGroup <span style="color:Red; ref<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; QueryAttribute<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; RegKeysType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Add<span style="color:Black; " <span style="color:Red; minOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; maxOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unbounded<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; AddType<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; type<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; required<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:string<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attributeGroup <span style="color:Red; ref<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; QueryAttribute<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SystemType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Identity<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; IdentityType<span style="color:Black; " <span style="color:Red; minOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; maxOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unbounded<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; RegKeys<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; RegKeysType<span style="color:Black; " <span style="color:Red; minOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; maxOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unbounded<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; type<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; required<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:string<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; schema<span style="color:Blue; >
[/code]
and here is the xml file that i want to validate with the schema:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; "<span style="color:Blue; ?>
<span style="color:Blue; <<span style="color:#A31515; Systems <span style="color:Red; xmlns<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; DriverFlags<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; System <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; IBM 3650 M3<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; Identity <span style="color:Red; query<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SELECT * FROM Win32_ComputerSystemProduct<span style="color:Black; " <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Vendor<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; IBM<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Identity <span style="color:Red; query<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SELECT * FROM Win32_ComputerSystemProduct<span style="color:Black; " <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Name<span style="color:Black; " <span style="color:Red; comparsion<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 7945<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; RegKeys <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; default<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Network Controller Broadcom BCM5709C<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 4.8.5.0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Network Controller Intel PT1000<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 9.11.5.7<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; TPM Controller 1.2<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 6.0.6001.18000<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Network Controller BASP Virtual<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.3.16.0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Storage Controller QLogic FC<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 9.1.7.16<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; RegKeys<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RegKeys <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Local Disk<span style="color:Black; " <span style="color:Red; query<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SELECT * FROM Win32_SCSIController WHERE Manufacturer LIKE LSI Corp.<span style="color:Black; " <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; DriverName<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; megasas2<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Raid Controller IBM HBA<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 2.13.0.32<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; RegKeys<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RegKeys <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SAN<span style="color:Black; " <span style="color:Red; query<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SELECT * FROM Win32_SCSIController WHERE Name LIKE Qlogic%<span style="color:Black; " <span style="color:Red; comparsion<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Name<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; QLogic Fibre Channel Adapter<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; strong<span style="color:Blue; ><span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Storage Controller QLogic FC<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 9.1.7.16<span style="color:Black; " <span style="color:Blue; /><span style="color:Blue; </<span style="color:#A31515; strong<span style="color:Blue; > Should not be possible to declare two Add elemets with the same key!
<span style="color:Blue; <<span style="color:#A31515; strong<span style="color:Blue; ><span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Storage Controller QLogic FC<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 9.1.7.16<span style="color:Black; " <span style="color:Blue; /><span style="color:Blue; </<span style="color:#A31515; strong<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; RegKeys<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; System<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; Systems<span style="color:Blue; >
[/code]
so i want to have only one <Add> element with a unique key attribute per <System> element . If there is a second <Add> element with the same key, the validation should fail.
I have no idea whats wrong with the schema, I tried several diffrent variations of the unique element without any success. I really appreciate if someone could help me with this.
Regards<br/>
Confederatio
View the full article
I have a little problem with my xml schema. I need to have an unique attribute in my xml file, unfortunatley it doesnt work like I want to. Here is the schema:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; " <span style="color:Red; encoding<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UTF-8<span style="color:Black; "<span style="color:Blue; ?>
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; schema <span style="color:Red; xmlns:xs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.w3.org/2001/XMLSchema<span style="color:Black; " <span style="color:Red; targetNamespace<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; DriverFlags<span style="color:Black; "
<span style="color:Red; elementFormDefault<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; qualified<span style="color:Black; " <span style="color:Red; attributeFormDefault<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unqualified<span style="color:Black; " <span style="color:Red; xmlns<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; DriverFlags<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Systems<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; System<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SystemType<span style="color:Black; " <span style="color:Red; minOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; maxOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unbounded<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UnqRegType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; selector <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; ./*<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; field <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; @type<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Unqe<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; selector <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; System/RegKeys/Add<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; field <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; @key<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UnqType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; selector <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; ./*<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; field <span style="color:Red; xpath<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; @type<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; unique<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element<span style="color:Blue; >
<span style="color:Green; <!-- Simple Type Definition -->
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attributeGroup <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; QueryAttribute<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; query<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; key<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; value<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; comparsion<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; simpleType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; restriction <span style="color:Red; base<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:short<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; minInclusive <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; maxInclusive <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; restriction<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; simpleType<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attributeGroup<span style="color:Blue; >
<span style="color:Green; <!-- Complex Type Definition -->
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; AddType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; key<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:string<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; required<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; value<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:string<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; required<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; IdentityType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attributeGroup <span style="color:Red; ref<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; QueryAttribute<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; RegKeysType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Add<span style="color:Black; " <span style="color:Red; minOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; maxOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unbounded<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; AddType<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; type<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; required<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:string<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attributeGroup <span style="color:Red; ref<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; QueryAttribute<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SystemType<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Identity<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; IdentityType<span style="color:Black; " <span style="color:Red; minOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; maxOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unbounded<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; element <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; RegKeys<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; RegKeysType<span style="color:Black; " <span style="color:Red; minOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; maxOccurs<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; unbounded<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; sequence<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; type<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; required<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; xs:string<span style="color:Black; "<span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; schema<span style="color:Blue; >
[/code]
and here is the xml file that i want to validate with the schema:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; "<span style="color:Blue; ?>
<span style="color:Blue; <<span style="color:#A31515; Systems <span style="color:Red; xmlns<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; DriverFlags<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; System <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; IBM 3650 M3<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; Identity <span style="color:Red; query<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SELECT * FROM Win32_ComputerSystemProduct<span style="color:Black; " <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Vendor<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; IBM<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Identity <span style="color:Red; query<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SELECT * FROM Win32_ComputerSystemProduct<span style="color:Black; " <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Name<span style="color:Black; " <span style="color:Red; comparsion<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 7945<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; RegKeys <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; default<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Network Controller Broadcom BCM5709C<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 4.8.5.0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Network Controller Intel PT1000<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 9.11.5.7<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; TPM Controller 1.2<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 6.0.6001.18000<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Network Controller BASP Virtual<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.3.16.0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Storage Controller QLogic FC<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 9.1.7.16<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; RegKeys<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RegKeys <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Local Disk<span style="color:Black; " <span style="color:Red; query<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SELECT * FROM Win32_SCSIController WHERE Manufacturer LIKE LSI Corp.<span style="color:Black; " <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; DriverName<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; megasas2<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Raid Controller IBM HBA<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 2.13.0.32<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; RegKeys<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RegKeys <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SAN<span style="color:Black; " <span style="color:Red; query<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; SELECT * FROM Win32_SCSIController WHERE Name LIKE Qlogic%<span style="color:Black; " <span style="color:Red; comparsion<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1<span style="color:Black; " <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Name<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; QLogic Fibre Channel Adapter<span style="color:Black; " <span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; strong<span style="color:Blue; ><span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Storage Controller QLogic FC<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 9.1.7.16<span style="color:Black; " <span style="color:Blue; /><span style="color:Blue; </<span style="color:#A31515; strong<span style="color:Blue; > Should not be possible to declare two Add elemets with the same key!
<span style="color:Blue; <<span style="color:#A31515; strong<span style="color:Blue; ><span style="color:Blue; <<span style="color:#A31515; Add <span style="color:Red; key<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Storage Controller QLogic FC<span style="color:Black; " <span style="color:Red; value<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 9.1.7.16<span style="color:Black; " <span style="color:Blue; /><span style="color:Blue; </<span style="color:#A31515; strong<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; RegKeys<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; System<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; Systems<span style="color:Blue; >
[/code]
so i want to have only one <Add> element with a unique key attribute per <System> element . If there is a second <Add> element with the same key, the validation should fail.
I have no idea whats wrong with the schema, I tried several diffrent variations of the unique element without any success. I really appreciate if someone could help me with this.
Regards<br/>
Confederatio
View the full article