xmltree

package
v0.0.0-...-22341e3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParseXML

func MustParseXML(r io.Reader, op ...ParseSettings) tree.Node

MustParseXML is like ParseXML, but panics instead of returning an error.

func ParseXML

func ParseXML(r io.Reader, op ...ParseSettings) (tree.Node, error)

ParseXML creates an XMLTree structure from an io.Reader.

Types

type DirectiveParser

type DirectiveParser interface {
	xmlbuilder.XMLBuilder
	Directive(xml.Directive, *xml.Decoder)
}

DirectiveParser is an optional interface extended from XMLBuilder that handles XML directives.

type ParseOptions

type ParseOptions struct {
	Strict  bool
	XMLRoot func() xmlbuilder.XMLBuilder
}

ParseOptions is a set of methods and function pointers that alter the way the XML decoder works and the Node types that are created. Options that are not set will default to what is set in internal/defoverride.go

type ParseSettings

type ParseSettings func(s *ParseOptions)

ParseSettings is a function for setting the ParseOptions you want when parsing an XML tree.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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