通过promise返回一个promise对象,它是xml格式的,我要如何将它解析成json格式的?
它的格式如下:
"<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body><GetCurrentRoomStatusGraphResponse xmlns="www.example.com"><GetCurrentRoomStatusGraphResult> <RoomStatusGraphItem></RoomStatusGraphItem> </GetCurrentRoomStatusGraphResult></GetCurrentRoomStatusGraphResponse> </soap:Body></soap:Envelope>"
狐的传说
猛跑小猪
相关分类