XMLDSig namespace validation problem in XMLSpy

K

kk

I can't figure out why XMLSpy can't validate pass the following schema
segment:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.mydomain.com/myschema"
xmlns:myns="http://www.mydomain.com/myschema"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
elementFormDefault="qualified">

<xs:element name="TestElement" type="myns:TestElementType"/>

<xs:complexType name="TestElementType">
<xs:sequence>
<xs:element name="Digest" type="myns:MsgImprintType"/>
<xs:sequence>
</xs:complexType>

<xs:complexType name="MsgImprintType">
<xs:sequence>
<xs:element name="HashedMessage" type="ds:DigestValueType"/>
<xs:element name="Algorithm" type="ds:DigestMethodType"/>
</xs:sequence>
</xs:complexType>

</xs:schema>

XMLSpy always stops at ds:DigestValueType and complains it's a schema error.
It claims "undefined value for 'type' encountered".

Why can't XMLSpy validate this one? This seems to be very straight forward
to me.

thanks for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,097
Latest member
RayE496148

Latest Threads

Top