| 2717 | |
| 2718 | |
| 2719 | void XMLPrinter::PushHeader( bool writeBOM, bool writeDec ) |
| 2720 | { |
| 2721 | if ( writeBOM ) { |
| 2722 | static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 }; |
| 2723 | Write( reinterpret_cast< const char* >( bom ) ); |
| 2724 | } |
| 2725 | if ( writeDec ) { |
| 2726 | PushDeclaration( "xml version=\"1.0\"" ); |
| 2727 | } |
| 2728 | } |
| 2729 | |
| 2730 | void XMLPrinter::PrepareForNewNode( bool compactMode ) |
| 2731 | { |