You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Radu Preotiuc-Pietro <ra...@bea.com> on 2005/04/05 22:09:52 UTC

RE: howto?:

What do you mean by "handle"?
It looks like OUTPUT is the output of validation of the document against that Schema, in which case the error looks legitimate to me.
However, if you are interested in Java binding, xmlBeans can handle invalid documents too, and you should be able to access <any> elements using XmlObject.selectChildren()
 
Radu

-----Original Message-----
From: Pepo, Gloria y duna en ETB [mailto:anatolia@etb.net.co]
Sent: Friday, March 25, 2005 9:17 PM
To: user@xmlbeans.apache.org
Subject: howto?: <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/> 


Hello
 
I'm working on this schema definition from XMLENC:
 
Schema Definition:
 
  <complexType name='EncryptionMethodType' mixed='true'>
    <sequence>
      <element name='KeySize' minOccurs='0' type='xenc:KeySizeType'/>
      <element name='OAEPparams' minOccurs='0' type='base64Binary'/>
      <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
    </sequence>
    <attribute name='Algorithm' type='anyURI' use='required'/>
  </complexType>
  
  
Input file
 
    <EncryptionMethod Algorithm=" http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
        <DigestMethod xmlns=" http://www.w3.org/2000/09/xmldsig#" Algorithm=" http://www.w3.org/2001/04/xmlenc#sha256"/ <http://www.w3.org/2001/04/xmlenc#sha256> >
        <OAEPparams>MTIzNDU2Nzg=</OAEPparams>
    </EncryptionMethod>
 
OUTPUT:
 
[ERROR  : INCORRECT_ELEMENT      ] 
Element not allowed: OAEPparams@http://www.w3.org/2001/04/xmlenc# in element EncryptionMethod@http://www.w3.org/2001/04/xmlenc#
 


Is there a specific way to handle this type of elements?     
 
 <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/> 

 
Walter GarcĂ­a