remove compilation warnings
fix clause when no dtd is found (TSUN-245)