MONC
Data Types | Modules | Functions/Subroutines
saxparser.F90 File Reference

Go to the source code of this file.

Data Types

interface  sax_xml_parser_mod::start_element_callback_interface
 The start element callback interface (on opening of XML tag) More...
 
interface  sax_xml_parser_mod::end_element_callback_interface
 The end element callback interface (on closing of XML tag, this is not called if an opening tag self closes) More...
 

Modules

module  sax_xml_parser_mod
 A SAX parser for XML files. This is used to parse the description of the data and rules. Being a SAX parser it works in a callback fashion, as these often do, and will call the start and end subroutines along with tag details. It still requires some additional stability work to handle ill formatted XML and error checking.
 

Functions/Subroutines

subroutine, public sax_xml_parser_mod::xml_parse (raw_contents, start_element_callback, end_element_callback)
 Parses some raw XML raw_contents The raw (unparsed) XML string start_element_callback Subroutine to call for each XML start element end_element_callback Subroutine to call for each XML end element. More...
 
subroutine sax_xml_parser_mod::process_individual_tag (raw_contents, start_element_callback, end_element_callback, start_index, end_index)
 Processes an individual XML tag. This deduces whether it is a start or end tag, the name and any additional attributes. More...
 
integer function sax_xml_parser_mod::get_attribute (contents, start_index, attribute_names, attribute_values, attribute_index)
 Retrieves the "next" attribute from the XML tag and returns the position after this attribute to search from next. This contains some additional complexities to deal with a number of different formatted tags. More...
 
integer function sax_xml_parser_mod::occurances_of_substring (string, substring)
 Returns the number of times a specific substring can be found in a string. More...