LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Ron_Hubscher

Add in an XML/DOM (Domain Object Model) API set

Status: New

Add in an API structure for DOM (Domain Object Models).  DOMs are usually read in from XML documents and saved out as XML documents.  This allows a nice file data format, and a set of APIs with a handle to hold onto data.

 

Example Code:

 

DOM_createNew("handleName");

DOM_loadXmlDocument("handleName", "path\to\document.xml");

DOM_saveXmlDocument("handleName", "path\to\document.xml");

struct DOM_Element  topElement = DOM_getTopElements("handleName");

struct DOM_Element  elemList[] = DOM_getElements("handleName", element_ptr);

struct DOM_Attribute* attribList = DOM_getAttributes("handleName",  element_ptr);

 

and so on... with setters and getters, add routines, and possibly the ability to force the DOM to adhear to a ".xls"

 

and then start moving the files away for old school .ini files in the saved text files.