[Project_owners] Parsing local XML file
neil at parkwaycc.co.uk
Thu Feb 10 23:42:27 EST 2005
Jawahar Swaminathan wrote:
> If I change one line in the above code to
> xmlDoc.load("file://" + fullname), the whole thing works. The full
> path in quotes does not work either.
> This obviously will work only on linux machines since the path to
> profile directory will be with \\ in windows machines.
You have to create an nsILocalFile, initialise it with your path, then
use the IO service to create a file URI from the file.
More information about the Project_owners