I want to create HTML elements by passing description in XML file for example
<component name='demoimg' type="image" src="add_bank_icon.png" theme="RegistrationInfo-img" />
then generate HTML page like
<img src='img/add_bank_icon.png' alt="demoimg" class='RegistrationInfo-img'/>
我的问题是如何动态生成HTML及其组件类。