added capability to create classes from xml