| 2544 | |
| 2545 | |
| 2546 | void XMLPrinter::PushHeader( bool writeBOM, bool writeDec ) |
| 2547 | { |
| 2548 | if ( writeBOM ) { |
| 2549 | static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 }; |
| 2550 | Write( reinterpret_cast< const char* >( bom ) ); |
| 2551 | } |
| 2552 | if ( writeDec ) { |
| 2553 | PushDeclaration( "xml version=\"1.0\"" ); |
| 2554 | } |
| 2555 | } |
| 2556 | |
| 2557 | |
| 2558 | void XMLPrinter::OpenElement( const char* name, bool compactMode ) |