Completed XML doctype parser