added basic support for XML declarations
parser: added some missing void elements

plus stylistic changes