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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4c3a4cac2a77bb10 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: XMLAda dom document to string Date: Wed, 13 Apr 2005 19:08:02 +0200 Organization: Cuivre, Argent, Or Message-ID: References: <425cca6c_1@glkas0286.greenlnk.net> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: melchior.cuivre.fr.eu.org 1113412099 79811 212.85.156.195 (13 Apr 2005 17:08:19 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 13 Apr 2005 17:08:19 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: "Martin Dowie" Return-Path: In-Reply-To: <425cca6c_1@glkas0286.greenlnk.net> X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at spray.net X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:10430 Date: 2005-04-13T19:08:02+02:00 2005-04-13 kl. 09.37 skrev Martin Dowie: > Bj=F6rn Lundin wrote: >> Is there a way of converting a dom document from >> XML/Ada (1.0) to a string? >> >> I found a Print in DOM.Core.Nodes that prints out a document to std >> out. That is actually what I want, but to a string instead, that I >> can put through a socket later on. > > You could set the standard output to be a file that you read in later. > > see Ada.Text_IO.Set_Output > > Bit clunky but should work. I did think of it, but naah, as you say, too clumpsy. In my case I would receive a rpc request, and then create a dom-document for an answer, save it to a file, read that file=20= again, and put it back on the socket. I can't defend that to my colleagues. But thanks for the input. Mr Mosteo solved it for me /Bj=F6rn > Cheers > > -- Martin > > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada-france.org > http://www.ada-france.org/mailman/listinfo/comp.lang.ada > > > Bj=F6rn Lundin bnl at spray dot se