xml

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewXmlExport

func NewXmlExport(rows *sql.Rows, exportPath string, bar *progressbar.ProgressBar) exportdata.Export

NewXmlExport creates a new XML exporter

Types

type Data

type Data struct {
	XMLName xml.Name `xml:"data"`
	Rows    []Row    `xml:"row"`
}

Data represents the root XML element

type Field

type Field struct {
	XMLName xml.Name
	Value   string `xml:",chardata"`
}

Field represents a field in a row

type Row

type Row struct {
	XMLName xml.Name
	Fields  []Field `xml:",any"`
}

Row represents a single row in XML

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL