Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Java Sun/Oracle xerces parser bug?
Java Sun/Oracle xerces parser bug? [message #1649739] Wed, 04 March 2015 13:32 Go to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Hi all,

I'm using the com.sun.org.apache.xerces parser in the JDK 1.8 rt.jar with eclipse luna. Parsing an XML document with an attribute and CDATA section that contain identical strings, which consist of Chinese characters, like this:

<tns:metaData tns:name="



Re: Java Sun/Oracle xerces parser bug? [message #1650588 is a reply to message #1649739] Wed, 04 March 2015 22:46 Go to previous message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

I guess the answer is "yes, it is a bug in the Sun/Oracle version of xerces." I just tried this with the latest build from apache and it works!
Note, if you're going to use the command line -Djava.endorsed.dirs="..." switch, you'll need to add both xerces and xalan binaries because it is required by eclipse. For windoze it's something like:

 -Djava.endorsed.dirs="C:\Program Files (x86)\Java\xerces-2_11_0"
 -Djava.endorsed.dirs="C:\Program Files (x86)\Java\xalan-j_2_7_2"


Cheers, Bob
Previous Topic:[EMF Transaction/Validation] How to exploit the live validation performed in a transaction?
Next Topic:Jface databinding for extended ecore models [solved]
Goto Forum:
  


Current Time: Tue Sep 17 00:29:46 GMT 2019

Powered by FUDForum. Page generated in 0.01767 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top