Now instead of having it run through main and mentioning the file as c.xml , i want this to be called from another program and have the input from a buffered reader , (with all the necessary conversions)