public void textFromXMLView(String s) {
        textFor = "";
        try {
            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
            DocumentBuilder db = dbf.newDocumentBuilder();

            InputSource is = new InputSource();
            is.setCharacterStream(new StringReader(s));         
            org.w3c.dom.Document doc = db.parse(is);

            Node n = doc.getFirstChild();
           // String nodesInfo = doc.getNodeValue();
            //String q = new String();
            //  System.out.println("aci  " + n);
            if (n == doc.getLastChild()) {
                if (n.getNodeName().contains("#comment")) {

                } else if (n.hasChildNodes()) {
                    NodeList sons = n.getChildNodes();
                    // System.out.println("aci  " + n);
                    for (int i = 0; i < sons.getLength(); i++) {
                        //System.out.println(sons.item(i).getNodeName());
                        infoNode(sons.item(i));
                    }
                } else {
                    textFor += n.getNodeValue();
                }
            } else {
                while (n != doc.getLastChild()) {
                    if (n.getNodeName().contains("#comment")) {

                    } else if (n.hasChildNodes()) {
                        NodeList sons = n.getChildNodes();
                        //System.out.println("aci  " + n);
                        for (int i = 0; i < sons.getLength(); i++) {
                            //System.out.println(sons.item(i).getNodeName());
                            infoNode(sons.item(i));
                        }
                    } else {
                        textFor += n.getNodeValue();
                    }
                    //System.out.println("aci2  " + n);
                    n = n.getNextSibling();
            //NodeList fi = (NodeList) n.getChildNodes();
                    //System.out.println(fi.getLength());

                }
            }
            // System.out.println("aici ai textFor " + textFor);
        } catch (ParserConfigurationException | SAXException | IOException ex) {
            Logger.getLogger(TextView.class.getName()).log(Level.SEVERE, null, ex);
        }
        ((JTextArea)view).setText(textFor);
    }