xml feed paring framework in php with custom error reporting