public String formatTag(int i, XMLNode xmlnode)
    {
        String s = "";
        switch(xmlnode.XMLType)
        {
        default:
            break;

        case 0: // '\0'
            s = s + "<" + xmlnode.XMLData;
            if(!xmlnode.XMLAttr.equals(""))
                s = s + xmlnode.XMLAttr;
            s = s + ">";
            if(xmlnode.XMLChild != null)
                s = s + evaluate(i++, xmlnode.XMLChild);
            s = s + "</" + xmlnode.XMLData + ">";
            break;

        case 1: // '\001'
            s = s + "<" + xmlnode.XMLData;
            if(!xmlnode.XMLAttr.equals(""))
                s = s + xmlnode.XMLAttr;
            s = s + "/>";
            break;

        case 2: // '\002'
        case 3: // '\003'
            s = s + xmlnode.XMLData;
            break;
        }
        return s;
    }