On 8/20/12 5:19 PM, "Michael Bishop" <[email protected]> wrote:
>
>My second example says "Wrap the content in a container, assign this
>particular ID to the container and sign the container." I'm not sure why
>it's failing. ObjectContainer belongs to Santuario and a quick look at
>the source confirms that it does what it's
> supposed to do:
>
>public void setId(String Id) {
> if (Id != null) {
> this.constructionElement.setAttributeNS(null, Constants._ATT_ID,
>Id);
> this.constructionElement.setIdAttributeNS(null,
>Constants._ATT_ID, true);
> }
>}
Hmm. Not sure then.
>So I don't see how I could mess things up with:
>
>objectContainer.setId("MyID");
>...
>signature.addDocument("#MyID", ...);
>
>...which is why I'm lost on this one!
Is the document all rooted? If the nodes aren't reachable from the root
element, it wouldn't work.
-- Scott