EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SBXMLTransform.TElXMLC14NTransform

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#9708
Posted: 04/16/2009 01:51:13
by dachi (Basic support level)
Joined: 04/16/2009
Posts: 3

Hello,

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
#9710
Posted: 04/16/2009 03:46:13
by Dmytro Bogatskyy (EldoS Corp.)

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

And using TElXMLC14NTransform class:
Code
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
}

Reply

Statistics

Topic viewed 1248 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!