source: XMLF90/doc/Tutorial/xpath/i.simple.f90 @ 6

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

Import des sources XMLF90

File size: 320 bytes
Line 
1program simple
2use flib_xpath
3
4type(xml_t) :: fxml
5
6integer  :: status
7character(len=100)  :: what
8
9call open_xmlfile("inventory.xml",fxml,status)
10!
11do
12      call get_node(fxml,path="//description",pcdata=what,status=status)
13      if (status < 0)   exit
14      print *, "Appliance: ", trim(what)
15enddo
16end program simple
Note: See TracBrowser for help on using the repository browser.