|
First note, that an xml file you are using IS
NOT empty. It contains 4 bytes.
That is why parseFirst() returned true (saying that it did not
found any XMLDeclaration, which should start from the first line -first column,
and it is ready to be parsed next, by calling the parseNext(). )
If you parse a really empty file (0 bytes syze). The
parseFirst() will return false, as expected.
I may be probably wrong, so let's Xerces team
members correct me.
The question remained is why getErrorCount() return 0, after
parseNext() was finished ?
Should it?
|
Title: RE: parsing an empty xml file
- parsing an empty xml file Williamson, Siehnai
- Re: parsing an empty xml file Tinny Ng
- RE: parsing an empty xml file Williamson, Siehnai
- Re: parsing an empty xml file Peter A. Volchek
- RE: parsing an empty xml file Erik Schroeder
- Re: parsing an empty xml file david_n_bertoni
- RE: parsing an empty xml file Williamson, Siehnai
- Re: parsing an empty xml file Peter A. Volchek
- Re: parsing an empty xml file Tinny Ng
