if (IsHTMLElement(child)) continue;
RDFXULBuilderImpl::RemoveChild(nsIContent* aElement, nsIRDFNode* aValue){    nsresult rv;    // Remove the specified node from the children of this    // element. What we do will vary slightly depending on whether    // aValue is a resource or a literal.    nsCOMPtr<nsIRDFResource> resource;    nsCOMPtr<nsIRDFLiteral> literal;    if (NS_SUCCEEDED(rv = aValue->QueryInterface(kIRDFResourceIID,                                                 (void**) getter_AddRefs(resource)))) {        PRInt32 count;        aElement->ChildCount(count);        while (--count >= 0) {            nsCOMPtr<nsIContent> child;            aElement->ChildAt(count, *getter_AddRefs(child));            // XXX can't identify HTML elements right now.            if (IsHTMLElement(child))                continue;            nsCOMPtr<nsIRDFResource> elementResource;            rv = GetElementResource(child, getter_AddRefs(elementResource));            if (resource != elementResource)                continue;            // okay, found it. now blow it away...            aElement->RemoveChildAt(count, PR_TRUE);            return NS_OK;        }    }    else if (NS_SUCCEEDED(rv = aValue->QueryInterface(kIRDFLiteralIID,                                                      (void**) getter_AddRefs(literal)))) {        // If it's a literal, then look for a simple text node to remove        NS_NOTYETIMPLEMENTED("write me!");    }    else {        // This should _never_ happen        NS_ERROR("node is not a value or a resource");        return NS_ERROR_UNEXPECTED;    }    return NS_OK;}