xmlhandle

package
v0.0.0-...-a404443 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

xmlhandle contains the xml data interactions, for using in sniff tests of MXF data.

Index

Constants

View Source
const (
	// Content is the xml ContentType
	Content mxftest.CType = "text/xml"
)

Variables

View Source
var DataIdentifier = mxftest.DataIdentifier{DataFunc: xMLIdentifier, ContentType: Content}

DataIdentifier is the xml identifier function

Functions

func PathSniffer

func PathSniffer(sc mxftest.SniffContext, path string) mxftest.Sniffer

PathSniffer searches an XML document for that path and stores the key value of the Node

It searches using the xPath library https://github.com/antchfx/xpath

Common searches include:

- "/*" - find the root element - "namespace-uri(/*)" - find the namespace of the root element

Types

This section is empty.

Jump to

Keyboard shortcuts

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