...
IDS | CPO | XMLLIB 3.0.0 | |
---|---|---|---|
Module | ids_schema | euitm_schemas | xmllib_types |
Integer | integer(ids_int) | integer(itm_i4) | integer(int4) |
Float | real(ids_real) | real(euitm_r8) | real(r8) |
Strings | character(132) | character(ids_string_length) | character(132) |
Reading XML information from file
XML data can be read from file in two ways, using fill_param
, or file2buffer
. While the latter has always been independent of the CPOs and IDSs, the latter used to be CPO/IDS dependent. The typical usage of fill_param
in an IDS environment is as follows:
Code Block |
---|
use ids_schemas, only: ids_parameters_input
use xml_file_reader, only: fill_param
type(ids_parameters_input) :: param
call fill_param( param, 'input.xml' , 'input.xsd' , 'input_default.xml' ) |
The corresponding usage in a CPO environment is:
Code Block |
---|
use euitm_schemas, only: type_param
use xml_file_reader, only: fill_param
type(type_param) :: param
call fill_param( param, 'input.xml' , 'input.xsd' , 'input_default.xml' ) |
The corresponding usage in XMLLIB 3.0.0 environment is:
Code Block |
---|
use xml_file_reader, only: fill_param
character(132), pointer :: param_xml(:) => NULL()
character(132), pointer :: param_xsd(:) => NULL()
character(132), pointer :: param_default(:) => NULL()
call fill_param( param_xml , param_xsd , param_default , &
'input.xml' , 'input.xsd' , 'input_default.xml' )
|