I know that it's a half answer, but PHP 5's XML handling is supposed to be good. Would it not be reasonable to say, "If you're running PHP 5 turn on the 'validate XML option'" and then use PHP5's XML code to validate the XML? Regards, Randy Peterman