OutputXMLWithOptions returns the text that including tags name.
(opts ...OutputOption)
| 352 | |
| 353 | // OutputXMLWithOptions returns the text that including tags name. |
| 354 | func (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. |
| 361 | func (n *Node) Write(writer io.Writer, self bool) error { |