I am trying to use the newFactory() method for XMLOutputFactory , which was added in Java 6. But Eclipse continues to mark newFactory() as undefined for the XMLOutputFactory type. JRE7 is the only runtime installed in the path to building new Java projects. The project itself has only JRE7 (JRE System Library) and Ivy. The error I am getting is
The method newFactory() is undefined for the type XMLOutputFactory
Any ideas how to get Eclipse to accept newFactory ? return XMLOutputFactory.newFactory() much just using return XMLOutputFactory.newFactory() as the only place the function is called.
source share