Thread: SAX Parse
View Single Post
  #2 (permalink)  
Old 01-25-2008, 05:57 PM
jelly's Avatar
jelly jelly is offline
Member
 
Join Date: Jan 2008
Location: Somerset, UK
Posts: 46
jelly is on a distinguished road
You haven't said what the problem is that you are getting However InputSources expect to work with Streams rather than Readers so I would change your bold portion to read:
Code:
fin = new FileInputStream(filename); xr.parse(new InputSource(fin));
and of course change the definition of fin to be a FileInputStream
__________________
-- Hope that helps
Reply With Quote