I need to make a XSD File that validate another XML file with a digital signature. The code of the signature in the XML File is this (is not necessary to read all the code to answer my question):
My question is very easy: I can´t use in the schema expresións like ” <element name=”ds: Signature>”, and I´ve found in Internet a lot f expressions like this:
<element name=”Signature” type=”ds:Signaure/>
…………………..............
What expresión can I use in my schema to correspond an XML expression like “<ds:Signature…>”???
Code:
<ds:Signature xmlns:ds="[URL unfurl="true"]http://www.w3.org/2000/09/xmldsig#">[/URL]
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="[URL unfurl="true"]http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:CanonicalizationMethod>[/URL]
<ds:SignatureMethod Algorithm="[URL unfurl="true"]http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>[/URL]
<ds:Reference URI="">
<ds:Transforms>
<ds:Transform Algorithm="[URL unfurl="true"]http://www.w3.org/2000/09/xmldsig#enveloped-signature">[/URL]
</ds:Transform>
<ds:Transform Algorithm="[URL unfurl="true"]http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"></ds:Transform>[/URL]
</ds:Transforms>
<ds:DigestMethod Algorithm="[URL unfurl="true"]http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>[/URL]
<ds:DigestValue>text</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>text</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>text</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
My question is very easy: I can´t use in the schema expresións like ” <element name=”ds: Signature>”, and I´ve found in Internet a lot f expressions like this:
<element name=”Signature” type=”ds:Signaure/>
…………………..............
What expresión can I use in my schema to correspond an XML expression like “<ds:Signature…>”???