Home All Groups Group Topic Archive Search About

Signing a single XML child

Author
30 Mar 2006 5:51 AM
Hans
Hi,

I want to sign a specific child element in an XML file:

<Main>
    <CanChange entry="2">
        ...
        ...
    </CanChange>
    <MayNotChange>
        <MayNotChangeEntry name="MyName">
        </MayNotChangeEntry>
        <MayNotChangeEntry name="AnotherName">
        </MayNotChangeEntry>
    </MayNotChange>
</Main>

Child <MayNotChange> must be signed in a way that allows for changes to
child <CanChange> (to my understanding, this complies with
http://www.w3.org/TR/xmldsig-core/).

Upto now, I only managed to sign the entire document, rather than a single
child. How can I sign a single child within an XML file in a way that allows
changes to other childs

Thanx for any help,
Hans.

AddThis Social Bookmark Button