You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by SM <sk...@gmail.com> on 2016/05/04 18:31:52 UTC

How to canonicalize a subtree of XML?

Hi,

I am using Xerces-C++ as my XML parser. Is there any API to get the
canonicalized C14n output of a subtree of an XML file? I need to get the
canonicalized octet stream for an element and all its sub elements.

I dug around a bit but could not find any published API for this in xerces.
Any help or pointers on this will be great.

Thanks,
Mosa.

Re: How to canonicalize a subtree of XML?

Posted by Vitaly Prapirny <ma...@mebius.net>.
Hi,

Please look at the Apache XML Security for C++ project. It supports C14n.
http://santuario.apache.org/cindex.html

Good luck!
   Vitaly

SM wrote:
> Hi,
>
> I am using Xerces-C++ as my XML parser. Is there any API to get the
> canonicalized C14n output of a subtree of an XML file? I need to get the
> canonicalized octet stream for an element and all its sub elements.
>
> I dug around a bit but could not find any published API for this in xerces.
> Any help or pointers on this will be great.
>
> Thanks,
> Mosa.
>