On Sat, Dec 01, 2001 at 12:09:46AM +0100, Jan Peter Hecking wrote:
> is there an easy way to dump an in-memory RDF datasource to either a
> file or stdout from within a javascript xpcom component?

Answer: there is. This thread in n.p.m.rdf explains how:

http://groups.google.com/groups?hl=de&threadm=3AF256D9.503%40netscape.com&rnum=2&prev=/groups%3Fq%3Drdf%2Bserialize%2Bmozilla%2Bdump%26hl%3Dde%26btnG%3DGoogle-Suche

Note: There's one mistake in the post. The nsIOutputStream should be
created like this:

var out = {
    write: function(buf, cound){ dump(buf); return cound; }
};

bye,
Jan

-- 
Jan Peter Hecking                     [EMAIL PROTECTED]
University of Rostock        Department of Computer Science
Web: http://jhecking.netgaroo.com, http://news.netgaroo.com

Reply via email to