source: XMLF90/doc/Examples/sax/features/xmlcheck.f90 @ 6

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

Import des sources XMLF90

File size: 348 bytes
Line 
1program xmlcheck
2!
3! Checks for well-formedness of an XML file
4!
5use flib_sax
6
7  integer :: iostat
8  type(xml_t)  :: fxml
9
10  call open_xmlfile("INP",fxml,iostat)
11  if (iostat /= 0) stop "Cannot open file INP."
12
13  call xml_parse(fxml, verbose = .false.)
14
15  print *, "Characters processed: ", xml_char_count(fxml)
16
17end program xmlcheck
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Note: See TracBrowser for help on using the repository browser.