Hi,

Is there any way to remove an RDF sequence which has no parent? This is
what I use to remove an RDF container which has a parent:

var arcsIn = datasource.ArcLabelsIn(container);
while (arcsIn.hasMoreElements()) {
  var arc = arcsIn.getNext();
  arc.QueryInterface(Components.interfaces.nsIRDFResource);
  if (rdfContainerUtils.IsOrdinalProperty(arc)) {
    var parentRes = datasource.GetSource(arc, container, true);
    var parentResContainer =
      rdfContainerUtils.MakeSeq(datasource, parentRes);
    parentResContainer.RemoveElement(container, true);
  }
}

Thank you in advance for any advice,
Eric Jung

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to