The xmllib library helps the reading and parsing of XML data in Fortran. It contains four distinct interfaces:
- The classic interface developed by Christian Konz. See the example in
examples/classic/. - The find_parameter interface developed by Michal Owsiak, which is a wrapper to the "classic" interface. See the example in
examples/xpath/. - The xmlget interface developed by Thomas Jonsson, which is a wrapper to the find_parameter. See the example in
examples/xpath/. - The xml2eg interface developed by Edmondo Giovannozzi, which is a wrapper to the
libxml-2.0[^libxml2]. See the example inexamples/xml2eg/.
The first three interfaces are kept for historical reason, it is highly recommended that new developments and users target the xml2eg interface only.
Some general limitations:
- these interfaces cannot handle xml-attributes.
- they cannot handle arrays of structures, e.g. /array[2]/value