added XMLReader.java which takes code from Source.java