I found the nsIPipe interface formerly, but I have no clue, how to 
create the instance in my script. Although the nsIPipe is a member of 
Components.interfaces, there is no appropriate class registered, I guess.

I'm new in xpcom and xpconnect and the mechanism, how components are 
registered is a bit unclear to me, so I cann't find the solution.

Can you help me on this?

Thanks again.

Pavel

Doug Turner wrote:
> We have a pipe implemention here:
> 
> http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsIPipe.idl
> 
> Let me know if that works for you.
> 
> 
> [EMAIL PROTECTED] wrote:
> 
>> Hi all,
>>
>> In my XUL based application (installed in chrome) I use 
>> xml-datasource. What I need is to get either a string or dom 
>> representation of the rdf.
>>
>> nsIRDFXMLSource has the Serialize member, which takes the 
>> nsIOutputStream as a parameter.
>>
>> nsIDOMParser (form xmletras) can read nsIInputStream.
>>
>> What I'm really missing is something like a 'pipe'.
>>
>> Is there some way, hw to redirect i/o? Do I really have to use the 
>> temporary file?
>>
>> Other solution would be serializing to 'string' stream. Is there 
>> something like this?
>>
>> I searched deja, lxr and several project pages, found no solution.
>>
>> Thank you in advance
>>
>> Pavel
>>
>> P.S.: direct rdf manipulation is not what I need. I need really the 
>> XML representation.
>>
> 



-- 
Pavel Hlavnicka
Ginger Alliance
www.gingerall.com


Reply via email to