XML to EXI Conversion
The rtXmlMem2ExiMem and rtXmlFile2ExiStream functions can be used to convert an XML document that is either in memory or in a file to EXI format.
rtXmlMem2ExiMem translates an XML document that is in memory to an EXI document in a different memory buffer. A typical use would be to use it after encoding an XML instance with XBinder. A call to this function is added to a generated writer.c file when -genWriter and -exi are specified on the XBinder command-line or through the GUI.
rtXmlFile2ExiStream translates an XML instance from a file to an output stream. The output stream can be any of the stream types that can be created with the rtxStreamCreateWriter functions - typically memory, file or socket. This function is used in the xml2exi utility program that is included in the utilites subdirectory of XBinder. This utility program can be used to convert any well-formed instance into EXI format.
Copyright © Objective Systems 2002-2008 This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included. |
Objective Systems, Inc.55 Dowlin Forge RoadExton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |