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.
Click to show internal directories.
Click to hide internal directories.