[jboss-cvs] JBossAS SVN: r73704 - projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue May 27 07:18:07 EDT 2008


Author: kabir.khan at jboss.com
Date: 2008-05-27 07:18:07 -0400 (Tue, 27 May 2008)
New Revision: 73704

Modified:
   projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata/XmlLoadableRootElementUtil.java
Log:
tidy up


Modified: projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata/XmlLoadableRootElementUtil.java
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata/XmlLoadableRootElementUtil.java	2008-05-27 11:08:59 UTC (rev 73703)
+++ projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata/XmlLoadableRootElementUtil.java	2008-05-27 11:18:07 UTC (rev 73704)
@@ -22,21 +22,13 @@
 package org.jboss.aop.microcontainer.beans.metadata;
 
 import java.io.BufferedWriter;
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
 import java.io.StringWriter;
 import java.util.List;
 import java.util.Map;
 
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-
 import org.jboss.util.xml.DOMWriter;
 import org.w3c.dom.DOMException;
-import org.w3c.dom.Document;
 import org.w3c.dom.Element;
-import org.xml.sax.SAXException;
 
 /**
  * 
@@ -81,42 +73,5 @@
          throw e;
       }
    }
-   
-//   public static Element getRootElement(List<Element> elements, String elementName, Map<String, String> elementAttributes)
-//   {
-//      String rootString = getRootElementString(elements, elementName, elementAttributes);
-//      return createRootElement(rootString);
-//   }
-//
-//   private static Element createRootElement(String rootString)
-//   {
-//      try
-//      {
-//         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-//         DocumentBuilder builder = factory.newDocumentBuilder();
-//         Document document = builder.parse(new ByteArrayInputStream(rootString.getBytes()));
-//         return document.getDocumentElement();
-//      }
-//      catch (ParserConfigurationException e)
-//      {
-//         // AutoGenerated
-//         throw new RuntimeException(e);
-//      }
-//      catch (SAXException e)
-//      {
-//         // AutoGenerated
-//         throw new RuntimeException(e);
-//      }
-//      catch (IOException e)
-//      {
-//         // AutoGenerated
-//         throw new RuntimeException(e);
-//      }
-//   }
-//   
-//   public static void main(String[] args)
-//   {
-//      Element element = createRootElement("<test name=\"tst\"><child>xx</child></test>");
-//   }
-//   
+
 }




More information about the jboss-cvs-commits mailing list