]> source.dussan.org Git - aspectj.git/commitdiff
Switch to using a parser that should be around on 1.4.
authoraclement <aclement>
Mon, 7 Nov 2005 14:57:35 +0000 (14:57 +0000)
committeraclement <aclement>
Mon, 7 Nov 2005 14:57:35 +0000 (14:57 +0000)
loadtime/src/org/aspectj/weaver/loadtime/definition/DocumentParser.java

index c5744a85ed9c1be108ba3a874a15c34ca8747610..3036367b2aac7830904efa8063579461bd36f4a4 100644 (file)
  *******************************************************************************/
 package org.aspectj.weaver.loadtime.definition;
 
+import java.io.InputStream;
+import java.net.URL;
+
+import javax.xml.parsers.SAXParserFactory;
+
+import org.aspectj.util.LangUtil;
 import org.xml.sax.Attributes;
 import org.xml.sax.InputSource;
 import org.xml.sax.SAXException;
 import org.xml.sax.SAXParseException;
 import org.xml.sax.XMLReader;
 import org.xml.sax.helpers.DefaultHandler;
-import org.xml.sax.helpers.XMLReaderFactory;
-import org.aspectj.util.LangUtil;
-
-import java.io.InputStream;
-import java.net.URL;
 
 /**
  * FIXME AV - doc, concrete aspect
@@ -78,7 +79,7 @@ public class DocumentParser extends DefaultHandler {
         try {
             DocumentParser parser = new DocumentParser();
 
-            XMLReader xmlReader = XMLReaderFactory.createXMLReader();
+            XMLReader xmlReader = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
             xmlReader.setContentHandler(parser);
             xmlReader.setErrorHandler(parser);