Draft implementation of XML layout loader