I'm trying to use the newFactory()
method for XMLOutputFactory
, which was added in Java 6. But Eclipse keeps flagging newFactory()
as undefined for the type XMLOutputFactory
. JRE7 is the only runtime installed and in the build path of new Java projects. The project itself only has JRE7 (JRE System Library) and Ivy set up. The error I keep getting is
The method newFactory() is undefined for the type XMLOutputFactory
Any ideas how to get Eclipse to accept newFactory
? Pretty much just using return XMLOutputFactory.newFactory()
as the only place where the function is called.