Converts XOML data into JavaScript object