xmlio

package
v0.0.0-...-1457574 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeSpaces

func NormalizeSpaces(input string) string

func ReadXML

func ReadXML[T any](r io.Reader) (T, error)

func ReadXMLs

func ReadXMLs[T any](r io.Reader, elementName string) iter.Seq2[T, error]

func Tokens

func Tokens(dec *xml.Decoder, raw bool) iter.Seq[xml.Token]

func TrimXML

func TrimXML(r io.Reader, w io.Writer, asHTML, rawToken bool) (err error)

Tokens TODO: ensure proper handling of namespaces

func WriteElements

func WriteElements(element string, r io.Reader, w io.Writer) (err error)

func XML

func XML[T any](fsfs fs.FS, name string) (T, error)

func XMLDicts

func XMLDicts(r io.Reader) iter.Seq2[string, string]

func XMLs

func XMLs[T any](fsfs fs.FS, name, elementName string) iter.Seq2[T, error]

Types

This section is empty.

Jump to

Keyboard shortcuts

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