Module Parser

module Parser: sig .. end
OSM XML Parser module. For given file returns value of Types.OSM type.

type xml_tree = 
| XMLElement of Xmlm.tag * xml_tree list
| XMLData of string
type parse_options = 
| ParseOptions of parse_options_t
Parser options. You can specify what type of OSM objects to skip during parsing process (nodes, ways or relations).
type parse_options_t = {
   parse_nodes : bool;
   parse_ways : bool;
   parse_relations : bool;
}
val default_parse_opts : parse_options
val input_tree : Xmlm.input -> xml_tree
val find_attr : Xmlm.attribute list -> string -> string option
val required_attr : Xmlm.attribute list -> string -> string
val parse_tags : xml_tree list -> Types.osm_tags
val parse_node : Xmlm.input -> Types.osm_node option
val parse_way : Xmlm.input -> Types.osm_way option
val parse_relation : Xmlm.input -> Types.osm_relation option
val parse_feature : Types.osm -> parse_options -> Xmlm.input -> Types.osm
val parse_file : ?parse_opts:parse_options -> string -> Types.osm
Parse file with given options and filename