+
+ /**
+ * Converts a dom4j document into a w3c DOM document.
+ *
+ * @param aDocument
+ * Document to convert.
+ *
+ * @return W3C DOM document.
+ *
+ */
+ public static org.w3c.dom.Document convert(org.dom4j.Document aDocument)
+ throws DocumentException {
+ return new DOMWriter().write(aDocument);
+ }
+
+ /**
+ * Converts a W3C DOM document into a dom4j document.
+ *
+ * @param aDocument
+ * Document to convert.
+ *
+ * @return Dom4j document.
+ */
+ public static org.dom4j.Document convert(org.w3c.dom.Document aDocument) {
+ return new DOMReader().read(aDocument);
+ }
+