let output file smaller. usage: //------------------------------------------------ XMLPrinter printer; printer->SetCompactMode( true ); //enable compact mode doc->Print( &printer ); SomeFunction( printer.CStr() ); //------------------------------------------------ or //------------------------------------------------ //enable at construction XMLPrinter printer( file, true ); // to file //XMLPrinter printer( NULL, true ); // to men doc->Print( &printer ); SomeFunction( printer.CStr() ); //------------------------------------------------ The '\n' and space in Text or Attribute will be kept.
39 KiB
39 KiB