OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XML DSIG schema validation performance

[ Lists Home | Date Index | Thread Index ]

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:X509Data>
<ds:X509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T+npp5XaePOOOeazOguiOB2gXvmay8ZOBvuZrEmiGcUA9
abvcW2vZeuYIyvK48gvVmdWao6r3ZjBpvS7ulBSTxpgHNjxMmzpwA7gsSElzOUHT0HMXWfN7zwO6
oudKlNGBWFZsQ9a6FQE=
</ds:Modulus>
<ds:Exponent>AQAB</ds:Exponent>
</ds:RSAKeyValue>
</ds:KeyValue>
</ds:KeyInfo>
<ds:Object Id="data1">
.......
</ds:Object>
</ds:Signature>




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS