- assigned_to: nobody --> balls
These predeclared entities are:
* & (&)
* < (<)
* > (>)
* ' (')
* " (")
If they appear in node Attribute field, they CAN be
parsed properly. But CAN *NOT* be parsed correctly if
they are in node value field, such as:
<test>& < > ' "</test>
Only get the first '&'.
I try the same script under tclxml2.6 and tcldom2.6, it
works well. So this might be a new introduced problem.
C:\cvsroot\set\cli\autotest>tclsh
% source t1.tcl
<?xml version='1.0'?>
<test>& < > ' "</test>
&
% package present xml
3.0
% package present dom
3.0
% package present Tcl
8.4
C:\cvsroot\set\cli\autotest>tclsh
% source t1.tcl
<?xml version='1.0'?>
<test>& < > ' "</test>
& < > ' "
% package present xml
2.6
% package present dom
2.6
% package present Tcl
8.4
% exit
================================================
<t1.tcl>
package require dom
set xmlstr "<?xml version='1.0'?>
<test>& < > ' "</test>"
puts $xmlstr
set doc [::dom::DOMImplementation parse $xmlstr]
set root [::dom::node cget $doc -firstChild]
set node [::dom::selectNode $root "/test"]
set n1 [::dom::node cget $node -firstChild]
set ret [::dom::node cget $n1 -nodeValue]