It's not absolutely guaranteed that the double element in the request document contains exactly one text node.
不能绝对保证请求文档中的double元素仅包含一个文本节点。
A robust solution needs to get all the text node children of the double element, concatenate them, and only then convert the result to a double.
一个健壮的解决方案需要获得double元素的所有文本子节点,将它们连接起来,并且仅将结果转换为double。
In the XML-RPC example, you need to read only one thing in the input: the double element, of which there should be exactly one. To do that, you look for the start of an element with the name double.
在XML - RPC例子中,仅需要读取输入中的一个元素:double元素,该元素应该只有一个。
应用推荐