NS_STATIC_CAST(const char*,anodeC),
anodeC.get(),
XULContentSinkImpl::OpenContainer(const nsIParserNode& aNode){    // XXX Hopefully the parser will flag this before we get here. If    // we're in the epilog, there should be no new elements    NS_PRECONDITION(mState != eInEpilog, "tag in XUL doc epilog");    if (mState == eInEpilog)        return NS_ERROR_UNEXPECTED;#ifdef PR_LOGGING    if (PR_LOG_TEST(gLog, PR_LOG_DEBUG)) {        const nsAReadableString& text = aNode.GetText();        nsCAutoString extraWhiteSpace;        PRInt32 count = mContextStack.Depth();        while (--count >= 0)            extraWhiteSpace += "  ";        nsCAutoString textC;        textC.AssignWithConversion(text);        PR_LOG(gLog, PR_LOG_DEBUG,               ("xul: %.5d. %s<%s>",                aNode.GetSourceLineNumber(),                NS_STATIC_CAST(const char*, extraWhiteSpace),                NS_STATIC_CAST(const char*, textC)));    }#endif    if (mState != eInScript) {        FlushText();    }    // We must register namespace declarations found in the attribute    // list of an element before creating the element. This is because    // the namespace prefix for an element might be declared within    // the attribute list.    PushNameSpacesFrom(aNode);    nsresult rv;    nsCOMPtr<nsINodeInfo> nodeInfo;    rv = ParseTag(aNode.GetText(), *getter_AddRefs(nodeInfo));    if (NS_FAILED(rv)) {#ifdef PR_LOGGING        nsCAutoString anodeC;        anodeC.AssignWithConversion(aNode.GetText());        PR_LOG(gLog, PR_LOG_ALWAYS,               ("xul: unrecognized namespace on '%s' at line %d",                NS_STATIC_CAST(const char*,anodeC),                aNode.GetSourceLineNumber()));#endif        return rv;    }    switch (mState) {    case eInProlog:        // We're the root document element        rv = OpenRoot(aNode, nodeInfo);        break;    case eInDocumentElement:        rv = OpenTag(aNode, nodeInfo);        break;    case eInEpilog:    case eInScript:        PR_LOG(gLog, PR_LOG_ALWAYS,               ("xul: warning: unexpected tags in epilog at line %d",                aNode.GetSourceLineNumber()));        rv = NS_ERROR_UNEXPECTED; // XXX        break;    }    return rv;}