Are you sure you're reading the file you think you're reading? Try printing out the contents rather than parsing them.
(This isn't something Xerces should be doing for XML, so I'm betting that you either are reading the wrong thing or are reading it from a server which is wrapping it as an HTML document before sending it to you. The only other possibility I can think of would be that you were using the XHTML parser derived from Xerces -- NekoHTML -- rather than Xerces itself.) ______________________________________ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish ( http://www.ovff.org/pegasus/songs/threes-rev-11.html)