EldoS | Feel safer!

Software components for data protection, secure storage and transfer


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 (Team)

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 1321 times

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


Back to top

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

Got it!