Hi,
because the XML standard does not demand that the attributes of an XML element have to be in a particular order, you can not depend on the order of attributes does not change (independent if the document has been stored in Tamino or not).
However, in case of XML Signature this problem has been solved by transforming the document into a canonical form. The canonical form does not change, independent if a document is stored, transmitted, parsed,… etc.
If you don’t use XML Signatures but still like to sign an XML document, you have to do the same by yourself, transform the document into its canonical form and sign the canonical form of the document.
But you have not to pass on XML Signature because of the usage of Smart Cards. E.g. the Apache XML Security project provides a C API, supporting e.g. the Microsoft CAPI. Additonally, with JDK 1.5 (available as alpha version) PKCS#11 support is provided, which currently also is added to the Apache XML Security Java API.
Hope it helps,
Eckehard Hermann,
Software AG R&D
#webMethods#Tamino#API-Management