replace all memcmp in xml parsers with macros

this has neither a performance impact nor does it change the API,
but it makes the code much more readable and most importantly extensions
much easier.