mirror of
https://gitee.com/johng/gf.git
synced 2024-12-03 20:58:47 +08:00
22 lines
399 B
Go
22 lines
399 B
Go
package main
|
|
|
|
import "github.com/gogf/gf/encoding/gparser"
|
|
|
|
func main() {
|
|
xml := `<?xml version="1.0" encoding="GBK"?>
|
|
|
|
<Output type="o">
|
|
<itotalSize>0</itotalSize>
|
|
<ipageSize>1</ipageSize>
|
|
<ipageIndex>2</ipageIndex>
|
|
<itotalRecords>3</itotalRecords>
|
|
<nworkOrderDtos/>
|
|
<nworkOrderFrontXML/>
|
|
</Output>`
|
|
p, err := gparser.LoadContent([]byte(xml))
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
p.Dump()
|
|
}
|