Parse XML (SRU) with php

前端 未结 1 578
说谎
说谎 2021-01-28 21:09

I have tried to parse an XML response that does not work. In the API docs it says that it is a XML based protocol: SRU. Wont this XML parsing code work then? Or is it some error

相关标签:
1条回答
  • 2021-01-28 21:17

    The dollar sign in $code (in the xpathvar->query) looks like it doesn't belong there. Try either removing or escaping the dollar sign, as appropriate in your case (removing looks appropriate, given the example xml).

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