whitespaces outside of the root element normalized
otherwise (except of line breaks), the whitespaces are preserved
attribute values always in double quotes "
special chars in attr. values replaced by refs to character entities
superflous NS declarations removed
default attribute values added to all element where relevant
attributes and NS declarations will be ordered lexikographically