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

Method Write

node.go:361–366  ·  view source on GitHub ↗

Write writes xml to given writer.

(writer io.Writer, self bool)

Source from the content-addressed store, hash-verified

359
360// Write writes xml to given writer.
361func (n *Node) Write(writer io.Writer, self bool) error {
362 if self {
363 return n.WriteWithOptions(writer, WithOutputSelf())
364 }
365 return n.WriteWithOptions(writer)
366}
367
368// WriteWithOptions writes xml with given options to given writer.
369func (n *Node) WriteWithOptions(writer io.Writer, opts ...OutputOption) (err error) {

Calls 2

WriteWithOptionsMethod · 0.95
WithOutputSelfFunction · 0.85

Tested by 5

TestLoadURLSuccessFunction · 0.64
TestEscapeValueWriteFunction · 0.64