xsdValidator

package
v0.0.0-...-19239a5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: EUPL-1.2 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationError

type ValidationError struct {
	Errors []error
}

func (ValidationError) Error

func (e ValidationError) Error() string

type XsdValidator

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

func New

func New(xsdDirectory string) *XsdValidator

func (*XsdValidator) GetFormatAndType

func (v *XsdValidator) GetFormatAndType(rawInvoice []byte) (string, string, error)

func (*XsdValidator) IsSimple

func (v *XsdValidator) IsSimple(invoiceXml types.Document, documentType string) bool

func (*XsdValidator) Validate

func (v *XsdValidator) Validate(src []byte, format, documentType string) error

Jump to

Keyboard shortcuts

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