Hardening/style guide in xml parse lib