2

I'm looking for the simplest way to canonicalize part of XML document in C++. Best option for me will be small library (I'm not c++ master) which I can simple add to my project.
If there is no such way and I have to create canonicalized part mysefl, what I have to remember about? To remove all unnecessary whitespaces, line breaks and to set attributes (and namespaces) alphabetically?
I have to create digital signature manually and this canonicalization is a part of this.
I'm working on Windows, so any tools from Linux won't help

rzysia
  • 737
  • 1
  • 11
  • 26

1 Answers1

0

You might want to have a look at the Apache xerces c++ library. the SAX2Print sample is close to canonicalization ( expand end tags and namespaces ).

  • I saw this, but the problem is that xerces c++ is really heavy and it's too complicated for me to add it to my project... – rzysia Mar 12 '14 at 12:04