Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML DSIG schema validation performance

From: Jorge Ortiz Claver <jorge.ortiz@-----.-->
To: xml-dev@-----.---.---, ------------@---.------.---
Date: 7/6/2005 8:41:00 AM
Hi,

I have a XML DSIG enveloping document I need to validate against its schema.

I´m using Apache Xerces 2.6.2 for schema validation (full schema 
validation). Everything works fine but process takes about 10 seconds. 
Using the same class with other XML documents (even using very complex 
schemas like UBL standards), validation never takes more than 2 or 3 
seconds (start JVM, locate class, create parser, open file, etc.).

Has anyone any experience validating this type of documents? I´d really 
appreciate any advice or idea.

Thanks in advance
Jorge Ortiz




<?xml version="1.0" encoding="UTF-8"?>
<ds:Signature
	xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2000/09/xmldsig# xmldsig-core-schema.xsd">

<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
<ds:Reference URI="#data1">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
<ds:DigestValue>xbF0V2YW4wwBEpnzwHcOZDtFLi0=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
Ce7TJZYv6e5RQ0SubTtl4EprFXBkLZhNy9YDa/yRD4NzrXiOx/pj7/jMYZYQbl5gHj0tW6ooYtVo
sC0GTJ+tCW3n8Yl//c9IRDC5lAItaki2ktxLm7AlQ514TzYbNVxPB/NXlp5c+VynAf7ehCDeVZQ1
D+WR+H23ylH5prwCv9U=
</ds:SignatureValue>
<ds:KeyInfo>
<ds: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ac3brTyWKSCXjT+npp5XaePOOOeazOguiOB2gXvmay8ZOBvuZrEmiGcUA9
abvcW2vZeuYIyvK48gvVmdWao6r3ZjBpvS7ulBSTxpgHNjxMmzpwA7gsSElzOUHT0HMXWfN7zwO6
oudKlNGBWFZsQ9a6FQE=
</ds:Modulus>
<ds:Exponent>AQAB</ds:Exponent>
</ds:RSAKeyValue>
</ds:KeyValue>
</ds:KeyInfo>
<ds:Object Id="data1">
.......
</ds:Object>
</ds:Signature>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent