MCPcopy Create free account
hub / github.com/beevik/etree / ExampleDocument_reading

Function ExampleDocument_reading

example_test.go:37–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func ExampleDocument_reading() {
38 doc := NewDocument()
39 if err := doc.ReadFromFile("document.xml"); err != nil {
40 panic(err)
41 }
42}
43
44func ExamplePath() {
45 xml := `

Callers

nothing calls this directly

Calls 2

ReadFromFileMethod · 0.95
NewDocumentFunction · 0.85

Tested by

no test coverage detected