473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

XMLDSig namespace validation problem in XMLSpy

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.

Jul 20 '05 #1
1 3114
kk
Never mind, I forgot the import thingy.
It works now.

kk wrote:
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.


Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Resler | last post by:
I am receiving the following validation error in the latest version of XMLSpy : This file is not valid: The complex type of element 'wx:Identifier' does not allow attribute 'ICAO_ID' and no...
0
by: Dave | last post by:
Hi all, I'm looking at designing an XSD for a signed document (enveloping) to be received from a third party. Primarily, I'm interested in what is the "best practice" with regards the...
3
by: AGGoogle | last post by:
I have a regular expression for email validation that I can validate using the XMLSPY but using the actual code (validating reader .NET) it fails. This is what my pattern looks like <xs:pattern...
2
by: tomek.romanowski | last post by:
Hi ! I have problem with validating of the document with multiple namespaces. The odd thing is, that my data work O'K when I test it under XMLSpy but it doesn't work with my C# code. My first...
7
by: Bilal | last post by:
Hello all, I came across this problem while working out the bugs in my identity trasnformation stylesheets but sidestepped it for later to see if there is an easier/better solution. This is...
6
by: quanghoc | last post by:
Hi all, I used XMLSpy to validate my XML but it catched one error at a time. Is there anyway to make XMLSpy to catch all errors at once. If XMLSpy does not have this feature, what software out...
1
by: Blue Doze | last post by:
Hello, I have the following XML schema fragment: <xs:complexType name="type.1"> <xs:simpleContent> <xs:restriction base="ns:type"> <xs:simpleType> <xs:restriction...
2
by: MarianM | last post by:
Hi all, how to validate xades xml against xades and xmlsig schemas? i have this sample: XmlTextReader xmlReader = new XmlTextReader(@"..\..\Data\xades_zep- epes.xml"); XmlReaderSettings...
1
by: tthunder | last post by:
Hi @all, Please check the following XML file and XML schema definition below first: ------- XML File (full): ------- <?xml version="1.0" encoding="UTF-8"?>
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.