mlabs wrote: > i've written a c++ xpcom component for firefox (windows). It needs to > open up an XML file locally and do some stuff with it. I want the > component to run on windows and Mac OSX. > > Q: does anyone know of a decent c++ XML library that will compile on > both windows and Mac OSX?
mozilla has the expat XML parser built in. You can access it through the nsISAXXMLParser interface [1]. You can also just use XMLHttpRequest and DOM from script as request.responseXML [2]. So I recommend writing your component in JS instead of C++ unless there are other requirements you haven't mentioned. > Q: does anyone know of any good examples of c++ xpcom on Mac OSX? Most of the Mozilla codebase is an example, since it is cross-platform code. What in particular do you want to know? --BDS 1. http://developer.mozilla.org/en/docs/SAX 2. http://developer.mozilla.org/en/docs/XMLHttpRequest#responseXML _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
