added features to prase the xml into js objects.