Fix dtd attributes and xml header

Signed-off-by: Atanas Kerezov <kerezov.atanas@gmail.com>