xml

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNodeNotFound = errors.New("Node not found in xml")

ErrNodeNotFound indicates that the specified node could not be found

Functions

This section is empty.

Types

type Node

type Node struct {
	XMLName xml.Name
	Content []byte `xml:",innerxml"`
	Nodes   []Node `xml:",any"`
}

Node represents a node in some XML

func FindXMLNode

func FindXMLNode(input, name string) (Node, error)

FindXMLNode finds the node with the specified name in the specified input XML string

Jump to

Keyboard shortcuts

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