H
Hans Scholte
Hi,
I'm parsing an XML file wich contains some unicode. When I'm reading a
textnode with a bit of unicode inside and keep it in a variable then, when I
try rereading the same textnode with the aid of the variable then I cannot
read back the node.
Let me try to explain:
I have the following xml document:
<doc>
<node>
<ID>id1</ID>
<value>value1</value>
</node>
<node>
<ID>....</ID
<value>foo / bar</value>
<node>
</doc>
the second ID element contains four bytes, representing some unicode.
$DOM represent the documentinstance
trying to preserve the ID value with $tmp =
$DOM->selectSingleNode('ID')->{'text'} leaves me with a smaller string then
the original four characters. I cannot re-read with
$DOM->selectSingleNode(ID[.="$tmp"])
Anybody any idea?
Hans
I'm parsing an XML file wich contains some unicode. When I'm reading a
textnode with a bit of unicode inside and keep it in a variable then, when I
try rereading the same textnode with the aid of the variable then I cannot
read back the node.
Let me try to explain:
I have the following xml document:
<doc>
<node>
<ID>id1</ID>
<value>value1</value>
</node>
<node>
<ID>....</ID
<value>foo / bar</value>
<node>
</doc>
the second ID element contains four bytes, representing some unicode.
$DOM represent the documentinstance
trying to preserve the ID value with $tmp =
$DOM->selectSingleNode('ID')->{'text'} leaves me with a smaller string then
the original four characters. I cannot re-read with
$DOM->selectSingleNode(ID[.="$tmp"])
Anybody any idea?
Hans