if (PR_LOG_TEST(gLog, PR_LOG_WARNING)) {
if (PR_LOG_TEST(gLog, PR_LOG_ALWAYS)) {
RDFContentSinkImpl::HandleEndElement(const PRUnichar *aName){  FlushText();  nsIRDFResource* resource;  if (NS_FAILED(PopContext(resource, mState, mParseMode))) {      // XXX parser didn't catch unmatched tags?#ifdef PR_LOGGING      if (PR_LOG_TEST(gLog, PR_LOG_WARNING)) {          nsAutoString tagStr(aName);          char* tagCStr = ToNewCString(tagStr);          PR_LogPrint                 ("rdfxml: extra close tag '%s' at line %d",                  tagCStr, 0/*XXX fix me */);          nsCRT::free(tagCStr);      }#endif      return NS_ERROR_UNEXPECTED; // XXX  }  // If we've just popped a member or property element, _now_ is the  // time to add that element to the graph.  switch (mState) {    case eRDFContentSinkState_InMemberElement:       {        nsCOMPtr<nsIRDFContainer> container;        NS_NewRDFContainer(getter_AddRefs(container));        container->Init(mDataSource, GetContextElement(1));        container->AppendElement(resource);      }       break;    case eRDFContentSinkState_InPropertyElement:       {        mDataSource->Assert(GetContextElement(1), GetContextElement(0), resource, PR_TRUE);                                                } break;    default:      break;  }    PRInt32 nestLevel = mContextStack->Count();  if (nestLevel == 0)      mState = eRDFContentSinkState_InEpilog;  NS_IF_RELEASE(resource);  return NS_OK;}