OutputXML returns the text that including tags name.
(self bool)
| 344 | |
| 345 | // OutputXML returns the text that including tags name. |
| 346 | func (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. |
| 354 | func (n *Node) OutputXMLWithOptions(opts ...OutputOption) string { |