| 2728 | |
| 2729 | |
| 2730 | void XMLPrinter::PushComment( const char* comment ) |
| 2731 | { |
| 2732 | SealElementIfJustOpened(); |
| 2733 | if ( _textDepth < 0 && !_firstElement && !_compactMode) { |
| 2734 | Putc( '\n' ); |
| 2735 | PrintSpace( _depth ); |
| 2736 | } |
| 2737 | _firstElement = false; |
| 2738 | |
| 2739 | Write( "<!--" ); |
| 2740 | Write( comment ); |
| 2741 | Write( "-->" ); |
| 2742 | } |
| 2743 | |
| 2744 | |
| 2745 | void XMLPrinter::PushDeclaration( const char* value ) |