| 513 | } |
| 514 | |
| 515 | void End() { |
| 516 | if (HasChildren) { |
| 517 | Parent->Indent(Indent, NewLineBeforeIndent); |
| 518 | Parent->Out << "</"; |
| 519 | Parent->Escape(Name); |
| 520 | Parent->Out << ">"; |
| 521 | } else { |
| 522 | Parent->Out << "/>"; |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | private: |
| 527 | TXmlWriter* Parent = nullptr; |