modified getItem to pre-parse embedded xml