MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / XMLStringObject

Function XMLStringObject

common/utils/xml.go:9–13  ·  view source on GitHub ↗

XMLStringObject 解析XML字符串

(xmlStr string, obj interface{})

Source from the content-addressed store, hash-verified

7
8// XMLStringObject 解析XML字符串
9func 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字节数组
16func XMLBytesObject(xmlStr []byte, obj interface{}) bool {

Callers 1

analysisExitStatusMethod · 0.92

Calls 1

XMLBytesObjectFunction · 0.85

Tested by

no test coverage detected