Function readOsmXmlDocument
Transactionally materialize one complete OSM XML document.
bool readOsmXmlDocument(
transport .source .ByteSource source,
out OsmXmlDocument document,
out OsmXmlReadStatus status,
OsmXmlReadOptions options = OsmXmlReadOptions(0LU, 0LU, 0LU)
) @safe;
Failure leaves document at .init. This convenience function intentionally materializes the dataset; use OsmXmlReader.read for bounded streaming.