Hi all,
I'm using Stax API (
http://stax.codehaus.org/) in my project. I'm using Eclipse IDE also. But I'm having a small issue. I have a java file like below:
import javax.xml.XMLConstants;
...
final private static SchemaFactory SCHEMA_FACTORY =
SchemaFactory.newInstance( XMLConstants.W3C_XML_SCHEMA_NS_URI );
...
I want to use XMLConstants of J2SE lib. The problem is IDE just understands XMLConstants class here is of Stax API. XMLConstants class of Stax API doesn't have W3C_XML_SCHEMA_NS_URI property. That's why Eclipse can't compile my java file. I can't remove Stax API from my program because there are some others places I used it. Do you know how to solve this one? Thanks very much.
Kind regards,
Vu Pham