Description: The interface of the XML DTON parser, parser is to encode the DTO Object to XML Notation.
Copyright: Copyright (c) 2010 Thousand Origami Cranes Corp.
Create Time: 17 Feb 2010 00:44:19 @author Kevin.Zhou @version 1.0
105106107108109110111112113114115116
try { XMLStreamWriter writer = XMLHelper.createXMLStreamWriter(resultStream, "UTF-8"); writer.writeStartDocument("UTF-8", "1.0"); writer.writeStartElement(XMLNotationDefinition.DTON); Parser parser = ParserFactory.create(object); parser.parse(object, writer); writer.writeEndElement(); writer.writeEndDocument(); } catch(Exception e) { throw ExceptionHelper.parse(e);