
DOM Interface
Decoders can be generated that can decode from a W3C Document Object Model (DOM) structure into XBinder generated structures. This is accomplished by adding the -dom switch to the command-line instead of -sax and -xml. The generated global element decode functions in this case would be of the following format:
[ns]XmlDec_<elemName>_fromDOM (OSCTXT* pctxt, OSRTDOMDocPtr doc, <typeName>* pvalue);The pctxt argument is the standard context argument as defined in other function definitions. The doc argument is the pointer to the main document root node of a DOM structure. This is abstract and is defined in domAPI.h to be a void pointer. It is assumed that the user has a DOM implementation defined that contains a concrete representation of this type. The pvalue argument is a pointer to a structure of the generated element type to receive the decoded data.
| Copyright © Objective Systems 2002-2007 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 |