Made parse() more coding friendly

Moved the attributes parameter to the end to prevent using null for any non-attribute tags.