MCPcopy Create free account
hub / github.com/antchfx/xmlquery / OutputXMLWithOptions

Method OutputXMLWithOptions

node.go:354–358  ·  view source on GitHub ↗

OutputXMLWithOptions returns the text that including tags name.

(opts ...OutputOption)

Source from the content-addressed store, hash-verified

352
353// OutputXMLWithOptions returns the text that including tags name.
354func (n *Node) OutputXMLWithOptions(opts ...OutputOption) string {
355 var b strings.Builder
356 _ = n.WriteWithOptions(&b, opts...)
357 return b.String()
358}
359
360// Write writes xml to given writer.
361func (n *Node) Write(writer io.Writer, self bool) error {

Callers 11

OutputXMLMethod · 0.95
TestParseFunction · 0.80
testOutputXMLFunction · 0.80
TestRemoveFromTreeFunction · 0.80
TestAddImmediateSiblingFunction · 0.80
TestOutputXMLWithOptionsFunction · 0.80

Calls 2

WriteWithOptionsMethod · 0.95
StringMethod · 0.80

Tested by 10

TestParseFunction · 0.64
testOutputXMLFunction · 0.64
TestRemoveFromTreeFunction · 0.64
TestAddImmediateSiblingFunction · 0.64
TestOutputXMLWithOptionsFunction · 0.64