Timo Boettcher wrote:
Hi Jeff,
Nachricht vom Montag, 18. August 2003, 18:14:37:
I've come across this frustrating behavior with the XML parser when it
reads an escaped ampersand (&)
If the xml being evaluated is: Blue, Green & Red
"The ampersand character (&) and the left angle br
Hi Jeff,
Nachricht vom Montag, 18. August 2003, 18:14:37:
> I've come across this frustrating behavior with the XML parser when it
> reads an escaped ampersand (&)
> If the xml being evaluated is: Blue, Green & Red
> it calls the character data handler 3 times:
> the first time the $data is
Hello,
It's not misbehaving and it's not illegal xml. It's a well documented
fact that the character data function may be called more than once. The
normal programming practice is to put the strings that are given to you
at each call into a buffer. Then you write code in the end handler to
pro
The data contains escaped ampersands -> &
Which is as far as I know the way one represents ampersands in their
data. In my post below, the value of $data the second time is "&"
because it has been evaluated by the xml parser.
And btw xmllint has no problems with &
On Mon, 2003-08-18 at 12:41,
This is normal. You have illegal XML there, as it should be
in . I have run across this, and have
to clean it up with an awk script. Ampersand is a no-no.
Just running xmllint on the file will tell you about the problem(s).
_justin
Jeff Bearer wrote:
>
> I've come across this frustrating beh
I've come across this frustrating behavior with the XML parser when it
reads an escaped ampersand (&)
If the xml being evaluated is: Blue, Green & Red
it calls the character data handler 3 times:
the first time the $data is "Blue, Green "
the second time is "&"
and the third time is " Red"
Ne
6 matches
Mail list logo