santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cantor, Scott" <canto...@osu.edu>
Subject Re: Broken Test Cases from 1.4.4 to 1.5.2? Related to ID?
Date Mon, 20 Aug 2012 21:55:44 GMT
On 8/20/12 5:47 PM, "Michael Bishop" <bishopmw@gmail.com> wrote:
>
>This may be significant.  When I'm trying to sign an entire document,
>here's what I do:
>
>Document signedDoc = // This is a new empty document.
>
>// Import the document I want to sign into my new document.
>final Node content = signedDoc.importNode(oldDoc.getDocumentElement(),
>true);
>
>// In here, I actually sign the content.
>final Node signedContent = ApacheSantuario.sign(content);

That probably won't work. After import, signedDoc.getDocumentElement() is
either null, or at minimum isn't connected to the imported tree, which
means searching that document for an ID will fail.

-- Scott


Mime
View raw message