add inputStream in the signature of XmlParser