cerif

package
v0.0.0-...-f60b9ba Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClassID

func ClassID(root *xmlquery.Node, name string) string

func NodesByClassName

func NodesByClassName(root *xmlquery.Node, tagName, className string) []*xmlquery.Node

NodesByClassName returns nodes matching tag name and sub attribute matching class name (uri)

func Parse

func Parse(reader io.Reader) (*xmlquery.Node, error)

Parse parses xml byte stream, removes namespace, and return xmlquery node

func RemoveNamespace

func RemoveNamespace(node *xmlquery.Node)

Types

type CerifValue

type CerifValue struct {
	Value     string
	StartDate time.Time
	EndDate   time.Time
}

func ValuesByClassName

func ValuesByClassName(root *xmlquery.Node, tagName, className, valueTag string) []CerifValue

ValuesByClassName transforms nodes from NodesByClassName into array of CerifValue. If set to a non empty value, valueTag is used to populate the cerif value.

Jump to

Keyboard shortcuts

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