Initial XML parser using DOM