Functional dict-based room lookup with XML data