You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/05/09 23:45:08 UTC
[Bug 1562] Changed - Entity Reference problem
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1562
*** shadow/1562 Fri Apr 27 13:41:02 2001
--- shadow/1562.tmp.14296 Wed May 9 14:45:08 2001
***************
*** 2,11 ****
| Entity Reference problem |
+----------------------------------------------------------------------------+
| Bug #: 1562 Product: Xerces-J |
! | Status: NEW Version: 1.2.3 |
! | Resolution: Platform: PC |
| Severity: Normal OS/Version: Other |
! | Priority: Component: SAX |
+----------------------------------------------------------------------------+
| Assigned To: xerces-j-dev@xml.apache.org |
| Reported By: jun.yuan@tfn.com |
--- 2,11 ----
| Entity Reference problem |
+----------------------------------------------------------------------------+
| Bug #: 1562 Product: Xerces-J |
! | Status: RESOLVED Version: 1.2.3 |
! | Resolution: INVALID Platform: PC |
| Severity: Normal OS/Version: Other |
! | Priority: High Component: SAX |
+----------------------------------------------------------------------------+
| Assigned To: xerces-j-dev@xml.apache.org |
| Reported By: jun.yuan@tfn.com |
***************
*** 20,23 ****
<name>ABC & DEF</name>, after parsing, the value I got is "DEF', instead
of 'ABC & DEF'. Is it a bug in the parser or did I miss something?
! Thanks.
--- 20,40 ----
<name>ABC & DEF</name>, after parsing, the value I got is "DEF', instead
of 'ABC & DEF'. Is it a bug in the parser or did I miss something?
! Thanks.
!
! ------- Additional Comments From lehors@apache.org 2001-05-09 14:45 -------
! I think you're being confused by the fact the data is returned through more
! than one call to characters() (in accordance with SAX).
! Here is what I get from sax.DocumentTracer:
!
! startElement(element={,name,name},attributes={})
! characters(text="ABC ")
! startEntity(name="amp")
! characters(text="&")
! endEntity(name="amp")
! characters(text=" DEF")
! endElement(element={,name,name}})
! endDocument()
!
! As an application, you probably want to concatenate the pieces you get from
! consecutive calls to characters. The parser doesn't do it for you.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org