Ionic框架:从responseText解析xml

Ionic framework : Parse xml from responseText

本文关键字:解析 xml responseText 框架 Ionic      更新时间:2024-04-17

我使用Javascript从XMLHttpRequest对象中获取一些xml行。结果,我从responseText属性中得到一个字符串。如何从该字符串中获取信息?

<items>
    <item info="value" info="otherValue" />
    <item info="value" info="otherValue" />
    <item info="value" info="otherValue" />
</items>

我终于摆脱了麻烦,从jquery获得了使用ajax的xml内容。