title: Eclipse Can't Find Latest Java 1.6 Methods for XMLOutputFactory
body: <p>I'm trying to use the <code>newFactory()</code> method for <code>XMLOutputFactory</code>, which was added in Java 6. But Eclipse keeps flagging <code>newFactory()</code> as <em>undefined</em> for the type <code>XMLOutputFactory</code>. 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 </p>
  
  <pre><code>The method newFactory() is undefined for the type XMLOutputFactory
  </code></pre>
  
  <p>Any ideas how to get Eclipse to accept <code>newFactory</code>? Pretty much just using <code>return XMLOutputFactory.newFactory()</code> as the only place where the function is called.</p>