From: "Björn Lundin" <bnl@spray.se>
To: "Alex R. Mosteo" <devnull@mailinator.com>
Cc: comp.lang.ada@ada-france.org
Subject: Re: XMLAda dom document to string
Date: Wed, 13 Apr 2005 19:03:34 +0200
Date: 2005-04-13T19:03:34+02:00 [thread overview]
Message-ID: <mailman.26.1113411843.24457.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <425CC45E.20404@mailinator.com>
2005-04-13 kl. 09.03 skrev Alex R. Mosteo:
> Björn Lundin wrote:
>> Hello!
>> 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.
>> I'm sure I've missed something obvious, but I can't see through it.
>> I've also found on a wiki, a way of walking the nodes in a document.,
>> by David Button,
>> I've been thinking of using it, as a template for a new
>> procedure/function that does what I want,
>> but I thought I'd ask here first, before I invent the wheel again.
>
> AFAIK, this is not present in that release of XML/Ada. I modified the
> Print function to get a string. You can look at it at
>
> http://deepsix.homeip.net/svn/Adagio%20head/src/agpl/dom-core-nodes-
> output.ads
> http://deepsix.homeip.net/svn/Adagio%20head/src/agpl/dom-core-nodes-
> output.adb
Great, just what I was after :)
Curiosity : what are you escaping?
Agpl.Xml.Escape is found in the body,
which I removed.
> but be warned that it performs some pretty printing and by that reason
> Windows-style new lines are embedded in the resulting string.
I can live with that.
> I'm sure I've talked about this with other people in some mailing
> list, so no doubt there are alternate solutions out there. It's
> possible that CVS XML/Ada has it already.
No, not a week ago anyway. I did download it then, but did not find
anything helpfull at all.
However I think this qualify for inclusion, except for the with'ed agpl
package
Thanks a lot
/Björn
Björn Lundin
bnl at spray dot se
next prev parent reply other threads:[~2005-04-13 17:03 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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox