Subject:Need help with Unique Partcile Attribute Rule (UPAR) Author:Vinotha Sunthar Date:06 Jan 2005 11:57 PM
Hi,
I'm trying to parse some xsd code (found below) with Xcerces.
I see, after a bit of research on the internet, the problem here
has to with violation of UPAR, but i'm finding it difficult to define the
'systemProvider' element in such way it doesn't violate this rule.
Could someone please assist me on how it can be done?
(I tried to follow the name, first-name, last-name examples widley found
in the internet to fix the problem, but this particular element definiton seems
to be a bit more complicated. Any help would be much appreciated.)
the validator cannot decide if this "error" element is the reference
coming after the "admin" element or the one coming after "deviceTypeInfo"
(because the "deviceTypeInfo" can be absent).
If the last "error" element is associated with the previous "deviceTypeInfo"
you can try changing the schema to have a second sequence like this