I've an application in C++ which manages a hierarchical arrangement of data. I'm in the process of porting it from wxWidgets to XUL/XPCOM. Currently, I'm using Gecko-SDK 1.8.04, XULRunner 1.8.04, and a I've build an XPCOM interface to my main data class which allows me to access and update my data model as I need to.
Currently, to display the structure in a tree view in the XUL front end, I: 1) recurse through the data in C++, building a DOM tree using Xalan, 2) in my XPCOM interface, get a text XML representation as a string, and pass the string back to JS 3) in JavaScript, take the string returned by my XPCOM interface, and run it through a DOMParser to get a DOM tree. 4) Run the DOM tree through an XSLTProcessor to generate the XUL to display. It seems duplicative to maintain code supporting two DOM libraries, and converting between them. The DOM interfaces don't seem to be documented as "frozen". Are they still in flux? If so, what do I need to do to access them? Or is there a better solution? _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
