Indent sets the encoder to generate XML in which each element begins on a new indented line that starts with prefix and is followed by one or more copies of indent according to the nesting depth.
(prefix, indent string)
| 156 | // begins on a new indented line that starts with prefix and is followed by |
| 157 | // one or more copies of indent according to the nesting depth. |
| 158 | func (enc *Encoder) Indent(prefix, indent string) { |
| 159 | enc.p.prefix = prefix |
| 160 | enc.p.indent = indent |
| 161 | } |
| 162 | |
| 163 | // Encode writes the XML encoding of v to the stream. |
| 164 | // |