DOM should be avoided for large files as the entire XML file is modelled as a Document in memory, including all Nodes, Elements, Attributes etc.
Faster at reading XML content than DOM. Stream implementation instead of Document Model Callback handler object has to be created
Following methods can be overwritten in the Handler class: ◦ startDocument() and endDocument() – methods called at the start and end of an XML document. ◦ startElement() and endElement() – methods called at the start and end of a document element. ◦ characters() – method called with the text contents in between the start and end tags of an XML document element.
CREATE TABLE `QuizMaster`.`user` (`username` TEXT NOT NULL, `password` TEXT NOT NULL ) ENGINE = InnoDB; CREATE TABLE `QuizMaster`.`role` (`username` TEXT NOT NULL, `role` TEXT NOT NULL ) ENGINE = InnoDB;
Will need to install the MySQL driver from http://dev.mysql.com/downloads/connector/j/3.0.html in the tomcat/lib folder http://dev.mysql.com/downloads/connector/j/3.0.html