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

Method OutputXML

node.go:346–351  ·  view source on GitHub ↗

OutputXML returns the text that including tags name.

(self bool)

Source from the content-addressed store, hash-verified

344
345// OutputXML returns the text that including tags name.
346func (n *Node) OutputXML(self bool) string {
347 if self {
348 return n.OutputXMLWithOptions(WithOutputSelf())
349 }
350 return n.OutputXMLWithOptions()
351}
352
353// OutputXMLWithOptions returns the text that including tags name.
354func (n *Node) OutputXMLWithOptions(opts ...OutputOption) string {

Callers 15

TestDirectiveNodeFunction · 0.95
TestNamespaceURLFunction · 0.80
testOutputXMLFunction · 0.80
TestDirectiveFunction · 0.80
TestAddAttrFunction · 0.80
TestSetAttrFunction · 0.80
TestRemoveAttrFunction · 0.80
TestEscapeOutputValueFunction · 0.80

Calls 2

OutputXMLWithOptionsMethod · 0.95
WithOutputSelfFunction · 0.85

Tested by 15

TestDirectiveNodeFunction · 0.76
TestNamespaceURLFunction · 0.64
testOutputXMLFunction · 0.64
TestDirectiveFunction · 0.64
TestAddAttrFunction · 0.64
TestSetAttrFunction · 0.64
TestRemoveAttrFunction · 0.64
TestEscapeOutputValueFunction · 0.64