users@jaxb.java.net

unmarshalling EmptyType

From: Lulseged Zerfu <lulseged.zerfu_at_ericsson.com>
Date: Tue, 21 Jul 2009 12:42:23 +0200

Hi
 
I have two schemas attached along with this e-mail:
 
I have a problem when unmarshalling a document made up of these two
schemas.
 
The extended schema urn:oma:xml:xdm:common-policy declares to
attributes(other-identity and anonymous-request) as EmptyType.
 
Both gets to be EmptyTypes when unmarshalling the following document:
 
 
<?xml version="1.0" encoding="UTF-8"?>
<cr:ruleset xmlns:cr="urn:ietf:params:xml:ns:common-policy"
xmlns:pub="urn:oma:xml:prs:pub-rules"
xmlns:ocr="urn:oma:xml:xdm:common-policy">
 <cr:rule id="rule-id-1">
  <cr:conditions>
   <cr:identity>
    <cr:many />
    <cr:many domain="yahoo.com">
     <cr:except id="sip:aron_at_yahoo.com" />
    </cr:many>
    <cr:one id="sip:bethel.zerfu_at_hotmail.com" />
   </cr:identity>
   <cr:sphere value="home" />
   <cr:validity>
    <cr:from>2009-07-01T16:00:00Z</cr:from>
    <cr:until>2009-07-02T16:00:00Z</cr:until>
   </cr:validity>
  </cr:conditions>
  <cr:actions>
   <pub:perm-handling>block</pub:perm-handling>
   <pub:pub-handling>block</pub:pub-handling>
  </cr:actions>
  <ocr:anonymous-request/> <!-- it means accept requests from
anonymous users -->
  <ocr:other-identity/> <!-- it means grant rights to users
that are not listed in this document -->
 </cr:rule>
</cr:ruleset>
 
When getting this attributes in a document like this, it has a meaning(
it means grant rights to users that are not in the document)
 
The problem is how to distinguish between these two attributes, whether
the attribute is anonymous-request attribute or other-identity
attribute?
 
Appreciate fro your help.
 
Lulseged