Re: how to parse a XML file?
Jim Patterson <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Bell Sympatico |
| Message-ID | <[email protected]> |
Chris Du wrote: > Dear Jim, > > I did two tests about xmlextras: > 1. > I built the TestXMLExtras in Visual C++ without link to xmlextras.lib/dll > and VC did not report any error. But when it executed, failed to create the > instance of domparser. > 2. > I added some code to mfcembed to create domparser instance as well. At this > time, I debug run mfcembeded and VC reported that /components/xmlextras.dll > was loaded by mfcembed.exe. But still failed to create the domparser > instance. I tried to create instances of other extensions I made myself, it > was OK. > > Can you tell me what was wrong there? especially in case 2. > Thank you very much. Sorry, I've no idea. I thought you were trying to load an XML document from a web page. I haven't tried using these components directly from C++. If you have a Mozilla dev environment, you might try building the necessary bits with DEBUG so you can step into the code that tries to create the DOM parser instance. It should give you some clues about what's wrong. Good luck! -- Jim Patterson Ottawa, Ont CANADA