| 2684 | |
| 2685 | |
| 2686 | void XMLPrinter::PushHeader( bool writeBOM, bool writeDec ) |
| 2687 | { |
| 2688 | if ( writeBOM ) { |
| 2689 | static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 }; |
| 2690 | Write( reinterpret_cast< const char* >( bom ) ); |
| 2691 | } |
| 2692 | if ( writeDec ) { |
| 2693 | PushDeclaration( "xml version=\"1.0\"" ); |
| 2694 | } |
| 2695 | } |
| 2696 | |
| 2697 | void XMLPrinter::PrepareForNewNode( bool compactMode ) |
| 2698 | { |