Module osm.io.xml.reader

Streaming semantic reader for ordinary OSM XML 0.6 documents.

The reader consumes bytes from transport-d and uses dxml internally. It materializes at most one OSM element at a time before invoking the consumer callback; retaining delivered owned values is the consumer's choice.

XML parser entities and ranges never cross the public API. Unknown attributes/elements fail explicitly rather than being converted to tags or silently discarded.

Date

2026-11-03

Functions

NameDescription
readOsmXmlDocument(source, document, status, options) Transactionally materialize one complete OSM XML document.

Structs

NameDescription
OsmXmlReader Stateless streaming OSM XML reader.
OsmXmlReadOptions Bounded-reader controls. Zero values select documented defaults.
OsmXmlReadStatus Diagnostic from one OSM XML read.
OsmXmlReadSummary Counts and document-envelope metadata from one complete successful read.

Enums

NameDescription
OsmXmlReadError Stable high-level failure category for OSM XML reading.