From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a525118741961e98 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!c10g2000vbv.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?bj=F6rn_lundin?= Newsgroups: comp.lang.ada Subject: Re: xml/ada dropping data when pre-defined entities are separated by space? Date: Sat, 29 Jan 2011 07:36:58 -0800 (PST) Organization: http://groups.google.com Message-ID: <839dbe65-e971-4db7-ad25-269253f02c69@c10g2000vbv.googlegroups.com> References: <05aafe44-cdd9-4c28-8e3f-24ecd9067ab3@u6g2000vbh.googlegroups.com> <4d415333$0$6769$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 85.230.244.231 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1296315418 1393 127.0.0.1 (29 Jan 2011 15:36:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 29 Jan 2011 15:36:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c10g2000vbv.googlegroups.com; posting-host=85.230.244.231; posting-account=3_reEwoAAAC163IAIrx427KYmwahFuh9 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (iPad; U; CPU OS 4_2_1 like Mac OS X; sv-se) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:17765 Date: 2011-01-29T07:36:58-08:00 List-Id: On 27 Jan, 12:12, Georg Bauhaus 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=F6rn