(ctx *xmlContext)
| 32 | } |
| 33 | |
| 34 | func (c xmlTree) xml(ctx *xmlContext) string { |
| 35 | b := bytes.Buffer{} |
| 36 | for _, chunk := range c.chunks { |
| 37 | s := chunk.xml(ctx) |
| 38 | b.WriteString(s) |
| 39 | b.WriteRune('\n') |
| 40 | } |
| 41 | return b.String() |
| 42 | } |
| 43 | |
| 44 | func (c *xmlTree) visit(visitor chunkVisitor) { |
| 45 | ctx := xmlContext{ |
no test coverage detected