xml

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Tag        string
	Content    string
	Attributes map[string]interface{}
	Children   []*Element
	Parent     *Element
}

Element represents an XML element

type XMLParser

type XMLParser struct {
	helper.ParserOperator
	// contains filtered or unexported fields
}

XMLParser is an operator that parses XML.

func (*XMLParser) Process

func (x *XMLParser) Process(ctx context.Context, entry *entry.Entry) error

Process will parse an entry for XML.

type XMLParserConfig

type XMLParserConfig struct {
	helper.ParserConfig `yaml:",inline"`
	Strict              *bool `yaml:"strict,omitempty"`
}

XMLParserConfig is the configuration of an XML parser operator.

func NewXMLParserConfig

func NewXMLParserConfig(operatorID string) *XMLParserConfig

NewXMLParserConfig creates a new XML parser config with default values

func (XMLParserConfig) Build

Build will build an XML parser operator.

Jump to

Keyboard shortcuts

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