Daniel Kirsch schrieb:
var treeDOM = document.implementation.createDocument("","tree",null);
treeDOM.load("chrome://ida/content/course.xml", "text/xml");

Using nsIDOMParser worked. However I wonder why "@mozilla.org/xmlextras/domparser;1" isn't mentioned at the XPCOM reference at xulplanet.com.


Another question:
Actually I select a file with nsIFilePicker, read it's content using nsILocalFile use parseFromString() from nsIDOMParser. Is there a better way like passing a file handle or a path directly to a parser object?


Thanks
Daniel




Reply via email to