1 /*////////////////////////////////////////////////////////////////////////////// 2 // 10 // 11 // See the README.txt file in this directory for copyright and license 12 // information. 13 // 14 // 15 // 16 // Example to demonstrate how to use libnucnet routines to 17 // validate an input xml file. 18 // 19 // 20 // 21 //////////////////////////////////////////////////////////////////////////////*/ 22 23 #include 24 25 int main( int argc, char **argv ) { 26 27 /*============================================================================ 28 // Check input. 29 //==========================================================================*/ 30 31 if ( argc != 2 ) { 32 fprintf( 33 stderr, "\nUsage: %s filename\n\n", argv[0] 34 ); 35 fprintf( 36 stderr, " filename = input nuclear data xml file or url.\n\n" 37 ); 38 return EXIT_FAILURE; 39 } 40 41 /*============================================================================ 42 // Validate the input file. 43 //==========================================================================*/ 44 45 if( Libnucnet__Nuc__is_valid_input_xml( argv[1] ) ) { 46 printf( "Valid input Libnucnet__Nuc xml file!\n" ); 47 } 48 49 /*============================================================================ 50 // Done! 51 //==========================================================================*/ 52 53 return EXIT_SUCCESS; 54 55 }