[expat] newbie question

Jeffrey Holle <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
I'm using expat 2.0.0 self build on Ubuntu Linux 5.10.

The program that I'm writing needs to process N XML files.
Note not nested, but in series.

My first attempt initializes the expat parser and feeds the data into it 
like this (pseudo code):

while(!files.eof())
{
   getline(files.filename);
   ifstream file(filename);
   do {
     char buffer[256];
     file.read(buffer,256);
     XML_Parse(parser,buffer,file.gcount(),0);
   } while (file.eof());
   XML_Parse(parser,NULL,0,1);
}

I have not shown it, but I do have an element handler enabled and it 
works as expected for the first file, but not subsequent ones.

What should I be doing to end one XML file parsing action and start another?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.