From: "Björn Lundin" <bnl@spray.se>
To: "Martin Dowie" <martin.dowie@baesystems.com>
Cc: comp.lang.ada@ada-france.org
Subject: Re: XMLAda dom document to string
Date: Wed, 13 Apr 2005 19:08:02 +0200
Date: 2005-04-13T19:08:02+02:00 [thread overview]
Message-ID: <mailman.27.1113412098.24457.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <425cca6c_1@glkas0286.greenlnk.net>
2005-04-13 kl. 09.37 skrev Martin Dowie:
> Björn 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
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örn
> Cheers
>
> -- Martin
>
>
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada-france.org
> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
>
>
>
Björn Lundin
bnl at spray dot se
prev parent reply other threads:[~2005-04-13 17:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-13 6:14 XMLAda dom document to string Björn Lundin
2005-04-13 7:03 ` Alex R. Mosteo
2005-04-13 17:03 ` Björn Lundin
2005-04-14 7:26 ` Alex R. Mosteo
2005-04-14 15:35 ` Björn Lundin
2005-04-15 9:32 ` Alex R. Mosteo
2005-04-13 18:50 ` Björn Lundin
2005-04-13 7:37 ` Martin Dowie
2005-04-13 17:08 ` Björn Lundin [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox