XMLDSig namespace validation problem in XMLSpy

KK

Usenet Archive
Joined
Dec 8, 2000
Messages
200
Reaction score
0
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.
 

KK

Usenet Archive
Joined
Dec 8, 2000
Messages
200
Reaction score
0
Never mind, I forgot the import thingy.
It works now.
 

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

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top