Document doc = db.parse(new File("students.xml"));
String s = "<athlete><name>Pyros</name><surname>Dimas</surname></athlete>"; Document doc =db.parse(new ByteArrayInputStream(s.getBytes()));