Neil Deakin <[EMAIL PROTECTED]> wrote:
>
> var p = rdf.GetResource('urn:ftdlg:data');
> var t = rdf.GetResource('http://www.foo.by/rdf#car-model');
> var carmodel = ds.GetTarget(p, t, true);
> if (carmodel instanceOf Components.interfaces.nsIRDFLiteral)
> alert(carmodel.Value);
> }
>
> Use ArcLabelsOut if you don't know what properties exist.
>
thanx a lot!
[carmodel] returned is nsIRDFNode so i queryinterface it to the
nsIRDFLiteral and get the rdf data. xpcom work wonders :)
single problem is that instanceOf seems to not working. why it
doesn't? i can't even use xulplanet examples codes with allusion of
instanceOf, they don't work at all - javascript rejects execute such
code...
/hooch
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom