WXML Library

  • Routines
  • General routines

    1. xml_OpenFile - Mandatory Initialization routine
    2. xml_Close - Mandatory finalization routine, closes channels, etc
    3. str - utility to convert reals and integers to character strings

    XML routines

    1. xml_NewElement - writes an xml start tag
    2. xml_AddAttribute - adds an attribute to a tag
    3. xml_AddPcdata - adds text to an xml element
    4. xml_AddArray - dumps the contents of an array as pcdata
    5. xml_EndElement - writes an xml end tag

  • Subroutine Guide
    1. xml_OpenFile(filename, ind, xf)

      argumentroletypeoptionaldefault
      filenamexml filenamecharacter(len=*)no 
      indcontrols indentation of outputlogicalyes.true.
      xfxml filenametype(xmlf_t)no 
    2. xml_Close(filehandle)

      argumentroletypeoptionaldefault
      xfxml filehandletype(xmlf_t)no 
    3. function str(value, format)

      argumentroletypeoptionaldefault
      valuevalue to convert to stringreal*8, real*4, integer, logicalno 
      formatformat for realscharacter(len=*)yesg22.12

    1. xml_NewElement(xf, name)

      argumentroletypeoptionaldefault
      xfxml filehandletype(xmlf_t)no 
      namename of tag to addcharacter(len=*)no 
    2. xml_AddAttribute(xf, attname, value)

      argumentroletypeoptionaldefault
      xfxml filehandletype(xmlf_t)no 
      attnameattribute namecharacter(len=*)no 
      valueattribute valuecharacter(len=*) (convert using str())no 
    3. xml_AddPcdata(xf, pcdata)

      argumentroletypeoptionaldefault
      xfxml filehandletype(xmlf_t)no 
      pcdatastring to addcharacter(len=*) (convert numbers using str())no 
    4. xml_AddArray(xf, a, format)

      argumentroletypeoptionaldefault
      xfxml filehandletype(xmlf_t)no 
      aarray (:) integer, real, doubleno 
      formatformat character(len=*)yes6(i12) / 4(es20.12)
    5. xml_EndElement(xf, name)

      argumentroletypeoptionaldefault
      xfxml filehandletype(xmlf_t)no 
      namename of element to closecharacter(len=*)no