added tweaks to ignore doctype tag and allow : in tag/attribute names