Creating UI loaders from HTML/XML