Use DOMDocument to create records for lazy-loading