2006/3/23, Neil Deakin <
[EMAIL PROTECTED]>:
?? wrote:
>
> I'm new to mozilla app dev. I want to manipulate a rdf seq container
> through nsIRDFContainerUtils interface, I just asserted a statement
> and query for it, but the result is always "false". Could anyone show
> me some light on this problem? Thank you.
>
> function test(){
> var rdfService=Components.classes["@ mozilla.org/rdf/rdf-service;1
> <http://mozilla.org/rdf/rdf-service;1>"]
> .getService(Components.interfaces.nsIRDFService);
> var rdfCUtils=Components.classes ["@
> mozilla.org/rdf/container-utils;1
> <http://mozilla.org/rdf/container-utils;1 >"]
> .getService()
> .QueryInterface(Components.interfaces.nsIRDFContainerUtils);
> var
> dataSource=rdfService.GetDataSource("chrome://encodinglock/content/encodingMapping.rdf");
>
>
RDF loaded from a chrome URL is read only.
/ Neil
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners
_______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
