I've attached the patch for the bug.
I just wanted to get a second word before I check it in.
Thanks, Vishal
Index: ElementProxy.java =================================================================== RCS file: /home/cvs/xml-security/src/org/apache/xml/security/utils/ElementProxy.java,v retrieving revision 1.25 diff -u -r1.25 ElementProxy.java --- ElementProxy.java 12 May 2004 12:00:46 -0000 1.25 +++ ElementProxy.java 8 Jun 2004 14:15:28 -0000 @@ -386,7 +386,12 @@ public byte[] getBytesFromChildElement(String localname, String namespace) throws XMLSecurityException { - Element e =XMLUtils.selectNode(this._constructionElement,namespace,localname,0); + Element e = + XMLUtils.selectNode( + this._constructionElement.getFirstChild(), + namespace, + localname, + 0); return Base64.decode(e); } @@ -402,9 +407,12 @@ public String getTextFromChildElement(String localname, String namespace) throws XMLSecurityException { - Text t = (Text) XMLUtils.selectNode(this._constructionElement, - namespace, localname,0 - ).getFirstChild(); + Text t = + (Text) XMLUtils.selectNode( + this._constructionElement.getFirstChild(), + namespace, + localname, + 0).getFirstChild(); return t.getData(); }