Hello Davide,

Davide Fais <[EMAIL PROTECTED]> wrote on 06/13/2006 11:15:23 AM:

> Hi at all,
> 
> I'm using the version 2.6.2 of Xerces-J and I have tried to validate
> the xml code at the bottom of the email against xml schema,
> that you can download from "http://www.w3.org/2000/09/xmldsig#";,
> but I got the following error
> 
>   Error: cvc-complex-type.2.4.b: The content of element 
> 'SignatureProperty' is not complete. One of 
> '{WC[##other:"http://www.w3.org/2000/09/xmldsig#"]}' is expected. line 
> 31, column 96
> 
> 
> I think the error refers to the follwing part of XML Schema:
> 
>    <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
>    <complexType name="SignaturePropertyType" mixed="true">
>      <choice maxOccurs="unbounded">
>        <any namespace="##other" processContents="lax"/>
>        <!-- (1,1) elements from (1,unbounded) namespaces -->
>      </choice>
>      <attribute name="Target" type="anyURI" use="required"/>
>      <attribute name="Id" type="ID" use="optional"/>
>    </complexType>
> 
> but in the code I don't use any other namespace element,
> but I should be able to insert a text because attribute
> "mixed" has value "true". So I don't understand the error of the parser.

The content of "SignatureProperty" must contain one or more instances of 
the wildcard so you must specify at least one element from a namespace 
other than "http://www.w3.org/2000/09/xmldsig#";. If it only contains text 
it isn't valid.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to