1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */
7
8 package org.jboss.util.xml;
9
10 import java.io.Writer;
11
12 import org.w3c.dom.Document;
13
14 /**
15 * A utility class to cover up the rough bits of xml parsing
16 *
17 * @author <a href="mailto:chris@kimptoc.net">Chris Kimpton</a>
18 * @version $Revision: 1.1.4.1 $
19 */
20 public class XmlHelper
21 {
22 public static void write(Writer out, Document dom)
23 throws Exception
24 {
25 DOMWriter writer = new DOMWriter(out);
26 writer.print(dom);
27 }
28 }
29
30