The attached Windows based test file simply loads an xml file from disk.  However, when I run it I always get the error mentioned below.  Can anyone give some advice on what I am doing wrong or is this a problem in Mozilla (I have attached test source code for this test)?

1. Copy the attached test.xml file to your C:\temp directory

2. Copy the attached TestXMLParse.exe to your Mozilla distribution directory

3. To run the program from the command line type: TestXMLParse c:\temp\test.xml

I get a "NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Factory creation failed");" error inside of the ParseStream call where it attempts to create the DOM implementation object.
nsCOMPtr<nsIDOMDOMImplementation>implementation(do_CreateInstance(kIDOMDOMImplementationCID, &rv));

Thanks,
--
Greg Thokle
 

<?xml version = "1.0"?>
<test>
	<test2 name="help"/>
</test>

TestXMLParse.cpp

TestXMLParse.exe

Reply via email to