XMLStringObject 解析XML字符串
(xmlStr string, obj interface{})
| 7 | |
| 8 | // XMLStringObject 解析XML字符串 |
| 9 | func XMLStringObject(xmlStr string, obj interface{}) bool { |
| 10 | // for testlib |
| 11 | xmlStr = strings.Replace(xmlStr, "<?xml version=\"1.0\" encoding=\"windows-1251\"?>", "<?xml version=\"1.0\" encoding=\"utf-8\"?>", -1) |
| 12 | return XMLBytesObject([]byte(xmlStr), obj) |
| 13 | } |
| 14 | |
| 15 | // XMLBytesObject 解析XML字节数组 |
| 16 | func XMLBytesObject(xmlStr []byte, obj interface{}) bool { |
no test coverage detected