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,94cb515ac93c798b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.33.161 with SMTP id s1mr24230467pbi.2.1318837079343; Mon, 17 Oct 2011 00:37:59 -0700 (PDT) Path: d5ni20514pbc.0!nntp.google.com!news1.google.com!postnews.google.com!s14g2000vbj.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?bj=F6rn_lundin?= Newsgroups: comp.lang.ada Subject: Re: xmlada validate schema trickery Date: Mon, 17 Oct 2011 00:31:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4b1a5483-d905-40be-b3a2-660a95a4d2a0@n13g2000vbv.googlegroups.com> <998e2b12-5c45-4f37-99b7-a505b806277a@fk25g2000vbb.googlegroups.com> NNTP-Posting-Host: 83.145.50.10 Mime-Version: 1.0 X-Trace: posting.google.com 1318837075 3489 127.0.0.1 (17 Oct 2011 07:37:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 17 Oct 2011 07:37:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s14g2000vbj.googlegroups.com; posting-host=83.145.50.10; posting-account=3_reEwoAAAC163IAIrx427KYmwahFuh9 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe) Xref: news1.google.com comp.lang.ada:18510 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-10-17T00:31:47-07:00 List-Id: On 14 Okt, 16:52, Emmanuel Briot wrote: > > However, the xmlfiles are processed by some tcl-scripts as well, > > and the (bad) tcldom(2.6) implementation (which I cannot upgrade) > > crashes on the xmlns attribute > > > > Is this because of the null prefix (ie will it work if you use > xmlns:bjorn=3D"..." and then use > > =A0 ... Hi Emmanuel! I'm not quite sure I understand. If I have I does work in xmlAda but so does XmlAda is not my problem; tcldom2.6 is. So the suggested solution still crashes the tcl-scripts. But perhaps I misunderstood where to put the ns-declaration My idea was to see if there is a way to tell XmlAda to treat as if it really said ie, 'just' append the xmlns attribute on the root node before/during the validation But I think I'll go for a simpler approch, I'll open the the file with DOM first, append the attribute, save it to a temp-file, and validate that one. That, I think, is good enough, until I get to upgrade/replace the tcl- scripts /Bj=F6rn