Escape HTML entities in static-defined attributes (fixes #64)handle XML errors in the strict mode