if (NS_FAILED(rv = aElement->GetAttribute(kNameSpaceID_XUL, kOpenAtom, value))) {
if (NS_FAILED(rv = aElement->GetAttribute(kNameSpaceID_None, kOpenAtom, value))) {
RDFTreeBuilderImpl::IsOpen(nsIContent* aElement){    nsresult rv;    // needs to be a <xul:treeitem> or <xul:treebody> to begin with.    PRInt32 nameSpaceID;    if (NS_FAILED(rv = aElement->GetNameSpaceID(nameSpaceID))) {        NS_ERROR("unable to get namespace ID");        return PR_FALSE;    }    if (nameSpaceID != kNameSpaceID_XUL)        return PR_FALSE;    nsCOMPtr<nsIAtom> tag;    if (NS_FAILED(rv = aElement->GetTag( *getter_AddRefs(tag) ))) {        NS_ERROR("unable to get element's tag");        return PR_FALSE;    }    // The <xul:treebody> is _always_ open.    if (tag.get() == kTreeBodyAtom)        return PR_TRUE;    // If it's not a <xul:treeitem>, then it's not open.    if (tag.get() != kTreeItemAtom)        return PR_FALSE;    nsAutoString value;    if (NS_FAILED(rv = aElement->GetAttribute(kNameSpaceID_XUL, kOpenAtom, value))) {        NS_ERROR("unable to get xul:open attribute");        return rv;    }    if (rv == NS_CONTENT_ATTR_HAS_VALUE) {        if (value.EqualsIgnoreCase("true"))            return PR_TRUE;    }    return PR_FALSE;}