comp.lang.ada
 help / color / mirror / Atom feed
* generating an XML file using Ada code
@ 2016-06-24 14:44 Stephen Leake
  2016-06-25  5:32 ` Niklas Holsti
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Stephen Leake @ 2016-06-24 14:44 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-26 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24 14:44 generating an XML file using Ada code Stephen Leake
2016-06-25  5:32 ` Niklas Holsti
2016-06-25  7:11 ` Simon Wright
2016-06-25 14:14 ` Georg Bauhaus
2016-06-26 14:15 ` Vadim Godunko

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