public int nodeCount(String s, LinkedList linkedlist, boolean flag)
    {
        int i = 0;
        if(linkedlist == null)
            return 0;
        for(ListIterator listiterator = linkedlist.listIterator(0); listiterator.hasNext();)
        {
            XMLNode xmlnode = (XMLNode)listiterator.next();
            if(xmlnode != null)
                switch(xmlnode.XMLType)
                {
                default:
                    break;

                case 0: // '\0'
                case 1: // '\001'
                    if(xmlnode.XMLData.equals(s) || flag)
                        i++;
                    break;
                }
        }

        return i;
    }