| 2629 | |
| 2630 | |
| 2631 | void XMLPrinter::OpenElement( const char* name, bool compactMode ) |
| 2632 | { |
| 2633 | SealElementIfJustOpened(); |
| 2634 | _stack.Push( name ); |
| 2635 | |
| 2636 | if ( _textDepth < 0 && !_firstElement && !compactMode ) { |
| 2637 | Putc( '\n' ); |
| 2638 | } |
| 2639 | if ( !compactMode ) { |
| 2640 | PrintSpace( _depth ); |
| 2641 | } |
| 2642 | |
| 2643 | Write ( "<" ); |
| 2644 | Write ( name ); |
| 2645 | |
| 2646 | _elementJustOpened = true; |
| 2647 | _firstElement = false; |
| 2648 | ++_depth; |
| 2649 | } |
| 2650 | |
| 2651 | |
| 2652 | void XMLPrinter::PushAttribute( const char* name, const char* value ) |