/** * Marshal the content tree rooted at <tt>jaxbElement</tt> into an output * stream, using org.docx4j.jaxb.NamespacePrefixMapper. * * @param os * XML will be added to this stream. * * @throws JAXBException * If any unexpected problem occurs during the marshalling. */ public void marshal(java.io.OutputStream os) throws JAXBException { marshal(os, NamespacePrefixMapperUtils.getPrefixMapper() ); }
/** * Marshal the content tree rooted at <tt>jaxbElement</tt> into a DOM tree. * * @param node * DOM nodes will be added as children of this node. * This parameter must be a Node that accepts children * ({@link org.w3c.dom.Document}, * {@link org.w3c.dom.DocumentFragment}, or * {@link org.w3c.dom.Element}) * * @throws JAXBException * If any unexpected problem occurs during the marshalling. */ public void marshal(org.w3c.dom.Node node) throws JAXBException { marshal(node, NamespacePrefixMapperUtils.getPrefixMapper() ); }
part.marshal( fos ); fos.close();
((org.docx4j.openpackaging.parts.JaxbXmlPart)part).marshal( out );
org.w3c.dom.Document doc = org.docx4j.XmlUtils.neww3cDomDocument(); try { this.marshal(doc); } catch (JAXBException e) {
part.marshal( zos ); } else {
/** * Marshal the content tree rooted at <tt>jaxbElement</tt> into an output * stream, using org.docx4j.jaxb.NamespacePrefixMapper. * * @param os * XML will be added to this stream. * * @throws JAXBException * If any unexpected problem occurs during the marshalling. */ public void marshal(java.io.OutputStream os) throws JAXBException { marshal(os, NamespacePrefixMapperUtils.getPrefixMapper() ); }
/** * Marshal the content tree rooted at <tt>jaxbElement</tt> into a DOM tree. * * @param node * DOM nodes will be added as children of this node. * This parameter must be a Node that accepts children * ({@link org.w3c.dom.Document}, * {@link org.w3c.dom.DocumentFragment}, or * {@link org.w3c.dom.Element}) * * @throws JAXBException * If any unexpected problem occurs during the marshalling. */ public void marshal(org.w3c.dom.Node node) throws JAXBException { marshal(node, NamespacePrefixMapperUtils.getPrefixMapper() ); }
part.marshal( fos ); fos.close();
((org.docx4j.openpackaging.parts.JaxbXmlPart)part).marshal( out );
org.w3c.dom.Document doc = org.docx4j.XmlUtils.neww3cDomDocument(); try { this.marshal(doc); } catch (JAXBException e) {
part.marshal( zos ); } else {