Hi, Working with the method getTransforms from the RetrievalMethod
object I found that to retrieve the Transforms node the code is the following: /** * Method getTransforms * * * @throws XMLSecurityException * @return */ public Transforms getTransforms() throws XMLSecurityException
{ try { Element transformsElem
=XMLUtils.selectDsNode(this._constructionElement,Constants._TAG_TRANSFORMS,
0); //
this method always returns null!!!! because the contructionElement is not a transforms it’s a RetrievalMethod Node instead of this the code should be // Element transformsElem =XMLUtils.selectDsNode(this._constructionElement,Constants._TAG_TRANSFORMS,
0); Element transformsElem
=XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),Constants._TAG_TRANSFORMS, 0); //here the first child, if exists must be a transforms
node …… If this bug has already been
solved simple ignore this mail ;P ;) Regards Dave Garcia |
smime.p7s
Description: S/MIME cryptographic signature