goProject/.svn/pristine/cc/cc26cf9c9870e83ca5586e5fcc655f5e598bf056.svn-base
2025-01-06 16:21:36 +08:00

13 lines
386 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
xml操作工具类
此操作工具类来源于:https://github.com/antchfx/xquery
根据实际情况。我去掉了对golang.org/x/net/html/charset的依赖并添加了各种xml加载函数
由于go默认编码的原因如果文本编码不是utf-8 将会出现乱码
使用方式
root := xmlUtil.LoadFromString(xml)
nodes:= root.SelectElements(xpath)
*/
package xmlUtil