Add parsing from InputStream and File for XML and JSON