You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by "Veres, Steve" <st...@bankofamerica.com> on 2001/01/29 20:57:21 UTC

Explanation needed, Xerces-J-bin_1_0_0 vs. Xerces-J-bin1.2.3

Please, anybody who knows the explanation for the problem described below 
let me know the answer.

Given a simple xml document with external dtd.
The root element of the document encloses a general entity reference for
which the 
the declaration is in the dtd, which declaration in turn contains another
general 
entity reference and this last (second) entity is declared to contain an
element 
declaration ending in PCDATA. Like: <name>Ford Motor Company</name>.

1. When the xml document is parsed by using dom.traversal.TreeWalkerView
from
Xerces-J-bin_1_0_0, the TEXT:#textValue:"Ford Motor Company" shows up only 
once in the Tree View of the TreeWalkerView.

2. When I do the same thing from Xerces-J-bin.1.2.3 the 
TEXT:#textValue:"Ford Motor Company"
TEXT:#textValue:"Ford Motor Company"
shows up twice right under each other as I showed it here. (But of course in
the DOM tree.)

Question: Why is there a difference? Does it have to do with DOM Level 1 and
2?
Or is it possible that the DOM trees are represented differently in
Xerces-J-bin_1_0_0 and 
Xerces-J-bin.1.2.3???

Any help would be really appreciated.

Thank you,

Steve