Hejsan, the attached patch implements the doctype check in the trivial parser, which is needed by the libxml parser backend. Currently it doesn't build. -- ciao, Christian