comp.lang.ada
 help / color / mirror / Atom feed
From: "björn lundin" <b.f.lundin@gmail.com>
Subject: Re: xml/ada dropping data when pre-defined entities are separated by space?
Date: Sat, 29 Jan 2011 07:36:58 -0800 (PST)
Date: 2011-01-29T07:36:58-08:00	[thread overview]
Message-ID: <839dbe65-e971-4db7-ad25-269253f02c69@c10g2000vbv.googlegroups.com> (raw)
In-Reply-To: 4d415333$0$6769$9b4e6d93@newsspool3.arcor-online.net

On 27 Jan, 12:12, Georg Bauhaus <rm.dash-bauh...@futureapps.de> wrote:
> On27.01.11 11:06, bj rn lundin wrote:
>
> > testrun:
> > c:\>test_xml_dom.exe
> > Value of Row is: ABC &
> > Value of Row is: ABC && DEF
> > Value of Row is: ABC _ DEF
>
> The same result on Debian stable and Debian testing.

Funny thing is that if i dump the dom-tree with print,
The serialized stream have both amps there plus whatever text follows
In that text node.

If i parse that xml with a sax parser, it triggs several charachter
events when
The amps are there, but only one character event when the text node
contains ordinary
 text only.
I did look in the sources, and it seems like the dom parser handles
the multiple character
events generated by the sax parser well, but still, i don't see
them in the nodevalue function.
(i get the impression that the dom tree is built with a sax parser)

But since i see them when using print, i wonder
If my code is faulty.


I mean, should i look for more child elements, and if so, when sholud
i stop?

/björn





  reply	other threads:[~2011-01-29 15:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27 10:06 xml/ada dropping data when pre-defined entities are separated by space? björn lundin
2011-01-27 11:12 ` Georg Bauhaus
2011-01-29 15:36   ` björn lundin [this message]
2011-01-29 17:13     ` Simon Wright
2011-01-29 21:49       ` björn lundin
2011-01-29 22:24         ` Simon Wright
2011-01-31  0:22         ` Georg Bauhaus
2011-01-31  8:04           ` björn lundin
2011-01-31 14:56             ` Emmanuel Briot
2011-01-31 20:17               ` björn lundin
2011-02-01  9:49               ` björn lundin
2011-02-01 18:24                 ` Vadim Godunko
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox