html dom dom ElementImpl dom ProcessingInstructionImpl w3c dom Node w3c dom html xml sax xml sax DocumentHandler xml sax Locator xml sax SAXException htmlbuilder documenthandler htmldocumentimpl _document elementimpl _ignorewhitespace _prerootnodes startdocument saxexception saxexception _document saxexception _document saxexception saxexception startelement tagname attrlist saxexception elementimpl elem tagname saxexception _document _document htmldocumentimpl elem elementimpl _document.getdocumentelement elem saxexception _prerootnodes _prerootnodes.size i-- _document.insertbefore node _prerootnodes.elementat elem _prerootnodes saxexception elem elementimpl _document.createelement tagname _current.appendchild elem elem attrlist attrlist.getlength elem.setattribute attrlist.getname attrlist.getvalue tagname saxexception saxexception _current.getnodename equalsignorecase tagname saxexception tagname tagname _current.getparentnode elementimpl _current.getparentnode characters text saxexception saxexception _current.appendchild _document.createtextnode text characters text start length saxexception saxexception _current.appendchild _document.createtextnode text start length ignorablewhitespace text start length saxexception _ignorewhitespace _current.appendchild _document.createtextnode text start length processinginstruction target instruction saxexception _document _prerootnodes _prerootnodes _prerootnodes.addelement processinginstructionimpl target instruction _document _document.appendchild _document.createprocessinginstruction target instruction _current.appendchild _document.createprocessinginstruction target instruction _document setdocumentlocator locator locator