nsITextContent::GetIID(),
NS_GET_IID(nsITextContent),
nsXULContentUtils::AttachTextNode(nsIContent* parent, nsIRDFNode* value){    nsresult rv;    nsAutoString s;    rv = GetTextForNode(value, s);    if (NS_FAILED(rv)) return rv;    nsCOMPtr<nsITextContent> text;    rv = nsComponentManager::CreateInstance(kTextNodeCID,                                            nsnull,                                            nsITextContent::GetIID(),                                            getter_AddRefs(text));    if (NS_FAILED(rv)) return rv;    rv = text->SetText(s.GetUnicode(), s.Length(), PR_FALSE);    if (NS_FAILED(rv)) return rv;    // hook it up to the child    rv = parent->AppendChildTo(nsCOMPtr<nsIContent>( do_QueryInterface(text) ), PR_FALSE);    if (NS_FAILED(rv)) return rv;    return NS_OK;}