On 7/21/06, Michel Gutierrez <[EMAIL PROTECTED]> wrote:

Ok, so you never remove the root node.


Is there a way to remove the root node through containers. That is opposite
of MakeSeq(). Ofcourse, I can delete the triplet using Unassert(). But
anyother way?

  ds.Assert(node,
     RDF.GetResource(
       "http://www.w3.org/1999/02/22-rdf-syntax-ns#instanceOf";),
     RDF.GetResource("http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq";),
     true);
   ds.Assert(node,
     RDF.GetResource(
       "http://www.w3.org/1999/02/22-rdf-syntax-ns#nextVal";),
     RDF.GetLiteral("1"),true);


Why do we need to do the above two asserts? And My child node is not of
suquence type. It's li type? Is n't it?

You should give it a try. If it doesn't work, you can dump at different
stages, all RDF triplets included in the datasource to see what's going
on. I can give you some code for that.


I just added the first assert from your code to my code, and also wrote a
function(cleanRDF()) which deletes the root node if the container is empty.
I am calling this functon onunload of tree window. Now it's working fine.
But my RDF file is wierd now in some cases. Strangely If I don't add the
first assert, my cleanRDF() function don't work properly. It deletes the
root node sometime only.

Thanks a lot for the help.

- Rajendra Prasad Murakonda,
http://prodizy.livejournal.com/
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to