source: XMLF90/doc/Tutorial/sax/inventory.f90 @ 6

Last change on this file since 6 was 6, checked in by ymipsl, 15 years ago

Import des sources XMLF90

File size: 454 bytes
Line 
1program inventory
2use flib_sax
3use m_handlers
4
5type(xml_t)        :: fxml      ! XML file object (opaque)
6integer            :: iostat   
7
8call open_xmlfile("inventory.xml",fxml,iostat)
9if (iostat /= 0) stop "cannot open xml file"
10
11call xml_parse(fxml, begin_element_handler=begin_element, &
12                     end_element_handler=end_element,     &
13                     pcdata_chunk_handler=pcdata_chunk )
14                     
15end program inventory
Note: See TracBrowser for help on using the repository browser.