gf: github.com/gogf/gf/g/encoding/gxml Index | Files

package gxml

import "github.com/gogf/gf/g/encoding/gxml"

Package gxml provides accessing and converting for XML content.

Index

Package Files

gxml.go

func Decode Uses

func Decode(content []byte) (map[string]interface{}, error)

将XML内容解析为map变量

func Encode Uses

func Encode(v map[string]interface{}, rootTag ...string) ([]byte, error)

将map变量解析为XML格式内容

func EncodeWithIndent Uses

func EncodeWithIndent(v map[string]interface{}, rootTag ...string) ([]byte, error)

func ToJson Uses

func ToJson(content []byte) ([]byte, error)

XML格式内容直接转换为JSON格式内容

Package gxml imports 5 packages (graph) and is imported by 2 packages. Updated 2019-06-24. Refresh now. Tools for package owners.