"<?xml version=\"1.0\"?>"
+ "<methodResponse>"
+ "<fault>"
+ "<value>"
+ "<struct>"
+ "<member>"
+ "<name>faultCode</name>"
+ "<value>"
+ "<int>"
+ "-1"
+ "</int>"
+ "</value>"
+ "</member>"
+ "<member>"
+ "<name>faultString</name>"
+ "<value>"
+ "<string>"
+ "The element type value must be terminated by the matching end-tag </value>"
+ "</string>" + "</value>" + "</member>" + "</struct>"
+ "</value>" + "</fault>" + "</methodResponse>";
在这里,当我尝试添加文本元素类型值必须由匹配的结束标记终止时,它会抛出空指针异常。我该如何处理。我希望以下部分抛出错误。问题在于“结束标签”。我该如何处理。
+ "<string>"
+ "The element type value must be terminated by the matching end-tag </value>"
+ "</string>" +