On 8/20/12 5:47 PM, "Michael Bishop" <[email protected]> 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

Reply via email to