git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196103
13f79535-47bb-0310-9956-
ffa450edef68
import java.util.Map;
import java.io.IOException;
+import javax.xml.parsers.SAXParserFactory;
+
//SAX
import org.xml.sax.XMLReader;
import org.xml.sax.SAXException;
XMLReader parser = null;
try {
- parser = javax.xml.parsers.SAXParserFactory.newInstance().newSAXParser().getXMLReader();
+ final SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance();
+ factory.setNamespaceAware(true);
+ parser = factory.newSAXParser().getXMLReader();
} catch (Exception e) {
throw new FOPException(e);
}