我有以下 XMLSlurper 无法解析的 XML。我认为 XMLSlurper 认为 xxx:yyy 是某种命名空间。有没有机会改变这种行为?
<node>
<application app_name="export"
app_data="nolocal:api_on_answer=sched_hangup +3600 40887ffe-65de-11e1-89da-e9feb0a98acf alloted_timeout"
app_stamp="1330854103808996">
</application>
</node>
我无法更改 XML。我得到的错误:
The prefix "nolocal" for element "nolocal:api_on_answer" is not bound.. Stacktrace follows:
Message: The prefix "nolocal" for element "nolocal:api_on_answer" is not bound.
Line | Method
->> 48 | doCall in sipsy.admin.WebapiController$_closure4$$ENQh9JnT
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread