comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: generating an XML file using Ada code
Date: Fri, 24 Jun 2016 07:44:54 -0700 (PDT)
Date: 2016-06-24T07:44:54-07:00	[thread overview]
Message-ID: <139d39ee-c198-4a63-a5c6-9cb265820edb@googlegroups.com> (raw)

I'm working on syncing a database between Windows and Android. The Android framework for doing this requires a "changes" file, in either XML or JSON format.

So on the Windows side I need to log all db operations to either xml or json.

Using xmlada, I don't see any way to output a file; I searched for "Text_IO" in the installed library code, and found only input functions. One of the xml tutorials mentions the C function "xmlSaveFormatFile"; I can't find that in the Ada code.

This question has been asked before on this list, several years ago; I hope there is a better answer now.

How can I create an XML file?


For JSON, there is the GNATColl.JSON package, which provides a "Write" function that serializes a JSON object to a string. So I can use that, but I prefer XML (it feels more Ada-like :).

-- Stephe


             reply	other threads:[~2016-06-24 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-24 14:44 Stephen Leake [this message]
2016-06-25  5:32 ` generating an XML file using Ada code Niklas Holsti
2016-06-25  7:11 ` Simon Wright
2016-06-25 14:14 ` Georg Bauhaus
2016-06-26 14:15 ` Vadim Godunko
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox