TOC PREV NEXT INDEX


Generated C Encode Functions for DOM Encoding


It is possible with XBinder to encode a populated data structure to a W3C-compliant Document Object Model (DOM) structure instead of directly to XML. This is done by using the -dom command-line switch. When this is done, the suffix _toDOM is added to generated encode functions.

The calling sequence is also changed to contain a pointer to a Document root node object:

	[ns]XmlEnc_<elemName>_toDOM (OSCTXT* pctxt, 
 
	   <typeName>[*] value, OSRTDOMNodePtr* ppRootNode);
 

The root node is a generic object pointer that points to the head of the DOM tree. It is defined in domAPI.h be a void pointer. A concrete DOM implemention would define the actual structure. The default DOM implementation in domAPI.c defines a mapping to the libxml2 DOM implementation.

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 Road
Exton, 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

TOC PREV NEXT INDEX