EldoS | Feel safer!

Software components for data protection, secure storage and transfer


Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 04/16/2009 01:51:13
by dachi (Basic support level)
Joined: 04/16/2009
Posts: 3


I’d like to process canonicalization on some XML elements. Please write how can I do it with using:

SBXMLTransform.TElXMLC14NTransform c14n = new SBXMLTransform.TElXMLC14NTransform();
SBXMLCore. TElXMLDOMElement XMLElem; //some xml data

Best regards
Posted: 04/16/2009 03:46:13
by Dmytro Bogatskyy (EldoS Corp.)

You can canonicalize xml elements without using TElXMLC14NTransform class, for example:
string s = XMLElem.GetOuterXMLCanonical(SBXMLDefs.Unit.xcmCanon);

And using TElXMLC14NTransform class:
byte[] data = null;
if (c14n.TransformData(XMLElem, null) == SBXMLTransform.Unit.tdtBinary) // TElXMLC14NTransform.TransformData always return Binary type for transformed data
  data = c14n.TransformedData; // data is UTF8 string



Topic viewed 1241 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!