private static String processServerDoGetResponseFromXMLToString(String s) throws Exception
    {
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
//            factory.setIgnoringElementContentWhitespace(true);
//            factory.setValidating(true);
        DocumentBuilder builder = factory.newDocumentBuilder();
        Document document = null;
        Element root = null;
        try{
            document = builder.parse(new InputSource(new StringReader(s)));
            root = document.getDocumentElement();

        } catch (Exception e)
        {
            e.printStackTrace(); System.out.print("String reader exception");
        }

//        if(!xmlValidation(s));
//            System.out.print("XML VALIDATION ISSUE\n");        //TODO: need to add XML Validator per schema

        if(root.equals(null))
            throw new RuntimeException("Error building parser");

        else if(root.getTagName().equals("server_get_response"))//new user is connecting
        {
            Element nameElement = (Element) document.getElementsByTagName("server_get_response").item(0);
            return nameElement.getTextContent();
        }
        else if(root.getTagName().equals("board"))//once the game has started the board is returned
        {
            //need to convert the playerID and board into a string with string buffer and return it
            currentPlayerID = Integer.parseInt(root.getAttribute("player_turn_id"));
            gameNumber = root.getAttribute("id");
            currentPlayerColor = root.getAttribute("player_turn_color");
            System.out.println("This game is on "+gameNumber);

            for(int i = 0; i < 7; i++)
            {
                Element rowElement = (Element) document.getElementsByTagName("row"+Integer.toString(i)).item(0);
                String row = rowElement.getTextContent();
                // save to the board state
                for(int j = 0; j < 7; j++)
                {
                    String[] col = row.split(",");
                    int boardSquare = Integer.parseInt(col[j]);
                    if(boardSquare == -1)
                        board[i][j] = EMPTY;
                    else if(boardSquare == 0)
                        board[i][j] = B;
                    else if(boardSquare == 1)
                        board[i][j] = W;
                    else
                        System.out.print("INCORRECT BOARD VALUE RETURNED... SERVER ERROR!");
                }
            }
            System.out.println(showBorad());
            return Integer.toString(currentPlayerID)+","+currentPlayerColor+","+gameNumber;


        }
        else
            return null;
    }