| 86 | } |
| 87 | |
| 88 | void TXmlOutputContext::StartElement(TString localName) { |
| 89 | CheckIsValidXmlAsciiName(localName, "StartElement"); |
| 90 | |
| 91 | if (CurrentElementIsEmpty) { |
| 92 | (*Out) << ">\n"; |
| 93 | Elements.push(std::move(CurrentElement)); |
| 94 | } |
| 95 | (*Out) << '<' << localName; |
| 96 | CurrentElement = std::move(localName); |
| 97 | CurrentElementIsEmpty = true; |
| 98 | } |
| 99 | |
| 100 | void TXmlOutputContext::EndElement() { |
| 101 | if (CurrentElementIsEmpty) { |
no test coverage detected