List of usage examples for org.dom4j Node write
void write(Writer writer) throws IOException;
write
writes this node as the default XML notation for this node.
From source file:com.christophermrossi.jpt.HTMLFragment.java
License:Open Source License
public void toXhtml(Writer writer) throws PageTemplateException, IOException { if (dom == null) { parseFragment();/*from w w w . ja v a 2s. com*/ } for (Iterator i = dom.nodeIterator(); i.hasNext();) { Node node = (Node) i.next(); node.write(writer); } }
From source file:com.webslingerz.jpt.HTMLFragment.java
License:Open Source License
public void toXhtml(Writer writer) throws PageTemplateException, IOException { if (dom == null) { parseFragment();/*from w ww. j a va 2 s .com*/ } for (Iterator<Node> i = dom.nodeIterator(); i.hasNext();) { Node node = i.next(); node.write(writer); } }
From source file:org.jbpm.jpdl.xml.JpdlXmlWriter.java
License:Open Source License
private void writeNodes(Element parentElement, Collection nodes) { Iterator iter = nodes.iterator(); while (iter.hasNext()) { org.jbpm.graph.def.Node node = (org.jbpm.graph.def.Node) iter.next(); if (!(node instanceof StartState)) { Element nodeElement = addElement(parentElement, ProcessFactory.getTypeName(node)); node.write(nodeElement); writeNode(nodeElement, node); }//from ww w. j a v a2s.c o m } }
From source file:org.zenonpagetemplates.onePhaseImpl.HTMLFragment.java
License:Open Source License
@SuppressWarnings({ "unchecked" }) public void toXhtml(Writer writer) throws PageTemplateException, IOException { if (this.dom == null) { parseFragment();//from w w w . j a v a2 s . c om } for (Iterator<Node> i = this.dom.nodeIterator(); i.hasNext();) { Node node = (Node) i.next(); node.write(writer); } }
From source file:org.zenonpagetemplates.twoPhasesImpl.HTMLFragment.java
License:Open Source License
@SuppressWarnings({ "unchecked" }) public void toXHTML(Writer writer) throws PageTemplateException, IOException { if (this.dom == null) { parseFragment();/*w w w .jav a2 s .c o m*/ } for (Iterator<Node> i = this.dom.nodeIterator(); i.hasNext();) { Node node = (Node) i.next(); node.write(writer); } }