MCPcopy Index your code
hub / github.com/antchfx/xmlquery / Parse

Function Parse

parse.go:35–37  ·  view source on GitHub ↗

Parse returns the parse tree for the XML from the given Reader.

(r io.Reader)

Source from the content-addressed store, hash-verified

33
34// Parse returns the parse tree for the XML from the given Reader.
35func Parse(r io.Reader) (*Node, error) {
36 return ParseWithOptions(r, ParserOptions{})
37}
38
39// ParseWithOptions is like parse, but with custom options
40func ParseWithOptions(r io.Reader, options ParserOptions) (*Node, error) {

Callers 15

ExampleFunction · 0.92
TestDefaultNamespace_1Function · 0.85
TestDefaultNamespace_2Function · 0.85
TestDefaultNamespace_3Function · 0.85
TestNamespaceURLFunction · 0.85
TestMultipleProcInstFunction · 0.85
TestParseFunction · 0.85
TestMissDeclarationFunction · 0.85
TestNonXMLParseFunction · 0.85
TestMissingNamespaceFunction · 0.85
TestTooNestedFunction · 0.85

Calls 1

ParseWithOptionsFunction · 0.85

Tested by 15

ExampleFunction · 0.74
TestDefaultNamespace_1Function · 0.68
TestDefaultNamespace_2Function · 0.68
TestDefaultNamespace_3Function · 0.68
TestNamespaceURLFunction · 0.68
TestMultipleProcInstFunction · 0.68
TestParseFunction · 0.68
TestMissDeclarationFunction · 0.68
TestNonXMLParseFunction · 0.68
TestMissingNamespaceFunction · 0.68
TestTooNestedFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…