new SourceTransformer().toDOMNode(new StringSource(baos.toString()));
Node node = new SourceTransformer().toDOMNode(new StringSource(baos.toString()));  String text = textValueOfXPath(node, "  System.out.println("Found price: " + text);  assertTrue("price text should not be empty", text.length() > 0);
    public void testInOut() throws Exception {        ActivationSpec as = new ActivationSpec();        as.setId("saaj");        SaajBinding saaj = new SaajBinding();        saaj.setSoapEndpoint(new URLEndpoint("http://64.124.140.30/soap"));         as.setComponent(saaj);        as.setService(new QName("saaj"));        container.activateComponent(as);                as = new ActivationSpec();        as.setId("xfireBinding");        as.setComponent(new HttpSoapConnector(null, PORT, true));        as.setDestinationService(new QName("saaj"));        container.activateComponent(as);        URLConnection connection = new URL("http://localhost:" + PORT).openConnection();        connection.setDoOutput(true);        connection.setDoInput(true);        OutputStream os = connection.getOutputStream();        // Post the request file.        InputStream fis = getClass().getResourceAsStream("soap-request.xml");        FileUtil.copyInputStream(fis, os);        // Read the response.        InputStream is = connection.getInputStream();        ByteArrayOutputStream baos = new ByteArrayOutputStream();        FileUtil.copyInputStream(is, baos);        System.out.println(baos.toString());                // Check xml validity        new SourceTransformer().toDOMNode(new StringSource(baos.toString()));    }