santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Garcia" <david.gar...@partners.netfocus.es>
Subject org.apache.xml.security.keys.content.RetrievalMethod.getTransforms method issue
Date Thu, 08 Sep 2005 14:10:06 GMT
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_TRANSFOR
MS, 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_TRANSFOR
MS, 0); 
       
       Element transformsElem
=XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),Constan
ts._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
 

Mime
View raw message