Loading XML file from httprequest output

后端 未结 1 1006
星月不相逢
星月不相逢 2021-01-26 04:40

I am trying to analyse the output of httprequest which is formatted as XML. I use MSXML2.DOMDocument to load the response as XML but I receive this error:

1条回答
  •  隐瞒了意图╮
    2021-01-26 05:16

    You are using the load method, which

    Loads an XML document from the specified location.

    However you want to load the XML as a string into the object, so use loadXML, which

    Loads an XML document using the supplied string.

    0 讨论(0)
提交回复
热议问题