Skip to main content

Issue with the ampersand character

1 reply [Last post]
carlosgg
Offline
Joined: 2004-07-23
Points: 0

Hi,

I'm facing a problem when trying to read text with the XMLStreamReader.getText method, which contains an ampersand (&) character.

The thing is that it only reads until the ampersand, so the following node is still text and not the closing element that I'm expecting.

The strange thing is that if I use the implementation supplied by Java6 it does the work fine, reading the whole text. If I use the JAXP 1.4 library with Java5 or the Glassfish implementation, it behaves as I described before.

Is there any way to make the JAXP 1.4 library behave as the Java6 implementation (which are suposed to be the same) does?

Thank you in advance.

Carlos.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
joehw
Offline
Joined: 2004-12-15
Points: 0

Could you please file a report in the Jaxp IssueTracker?
Please state details such as:


1) jdk6 version, e.g. 1.6.0 or 1.6.2

2) jdk5 version

3) jaxp 1.4 version, e.g. 1.4.0, 1.4.2, or latest build

4) a testcase with simple code and xml to demonstrate the issue

Thanks. I promise it will be investigated as soon as the issue's filed :)