On 7/20/06, Michel Gutierrez <[EMAIL PROTECTED]> wrote:
You get an exception while calling nsIRDFContainer.AppendElement, but if you have removed all nodes, which node do you append the new node to ?
For adding the first element, I need to use AppendElement() only, right? My root is there but it's empty, then I am adding the new element. I presume you kept the root node (the one with a RDF id set in the ref
attribute, "urn:root" for instance).
My root node is this: <RDF:Seq RDF:about="http://path/to/all-nodes/"> </RDF:Seq> when I do MakeSeq(), the above will get created and all the elements added using AppendElemtn() are part of this. When you removed your nodes, presumably with
nsIRDFContainer.RemoveElement, did you set the second argument (renumber) to true ?
Yes, I set it to true. But does that matter in this case? The problem comes after deleting all the nodes. Thanks for the reply, - Rajendra Prasad Murakonda, http://prodizy.livejournal.com/ _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
