if (aNode.isContent()) { nsINodeInfo *ni = aNode.mContent->GetNodeInfo(); if (ni) { return ni->Equals(aLocalName); }
if (aNode.isContent() && aNode.mContent->IsContentOfType(nsIContent::eELEMENT)) { return aNode.mContent->NodeInfo()->Equals(aLocalName);
txXPathNodeUtils::localNameEquals(const txXPathNode& aNode,                                  nsIAtom* aLocalName){#ifdef TX_EXE    nsCOMPtr<nsIAtom> localName;    aNode.mInner->getLocalName(getter_AddRefs(localName));    return localName == aLocalName;#else    if (aNode.isContent()) {        nsINodeInfo *ni = aNode.mContent->GetNodeInfo();        if (ni) {            return ni->Equals(aLocalName);        }    }    nsCOMPtr<nsIAtom> localName = txXPathNodeUtils::getLocalName(aNode);    return localName == aLocalName;#endif}