Converting XML values to dictionary.