Java Doc for TXW.java in » 6.0-JDK-Modules » jaxb-impl » com » sun » xml » txw2 » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Creates a new
TypedXmlWriter to write a new instance of a document.
Parameters: rootElement - The TypedXmlWriter interface that declares the content model of the root element.This interface must have XmlElement annotation on it to designate the tag nameof the root element. Parameters: out - The target of the writing.
Creates a new
TypedXmlWriter to write a new instance of a document.
Similar to the other method, but this version allows the caller to set the
tag name at the run-time.
Parameters: tagName - The tag name of the root document. See Also:TXW.create(Class,XmlSerializer)