xmlpath

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(data []byte) (*Document, error)

func (*Document) MarshalIndent

func (d *Document) MarshalIndent(prefix, indent string) ([]byte, error)

func (*Document) Root

func (d *Document) Root() *Element

type Element

type Element struct {
	// contains filtered or unexported fields
}

func (*Element) AppendChild

func (e *Element) AppendChild(name string) *Element

func (*Element) AppendChildInOrder

func (e *Element) AppendChildInOrder(name string, order []string) *Element

func (*Element) Attr

func (e *Element) Attr(name string) (string, bool)

func (*Element) EnsurePath

func (e *Element) EnsurePath(path string) *Element

func (*Element) Find

func (e *Element) Find(path string) *Element

func (*Element) FindAll

func (e *Element) FindAll(path string) []*Element

func (*Element) Name

func (e *Element) Name() string

func (*Element) RemoveAll

func (e *Element) RemoveAll(path string) int

func (*Element) SetAttr

func (e *Element) SetAttr(name, value string)

func (*Element) SetText

func (e *Element) SetText(value string)

func (*Element) Text

func (e *Element) Text() string

Jump to

Keyboard shortcuts

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