comp.lang.ada
 help / color / mirror / Atom feed
From: briot.emmanuel@gmail.com
Subject: Re: AdaCore xmlada throws XML_Fatal_Error on <script> tag
Date: Wed, 6 Sep 2017 23:21:24 -0700 (PDT)
Date: 2017-09-06T23:21:24-07:00	[thread overview]
Message-ID: <ed161af1-2b58-4577-89dc-8b6bf397df0a@googlegroups.com> (raw)
In-Reply-To: <ca76ab44-e854-42ba-ae0a-3e5e5f86cc30@googlegroups.com>

> Unless there's another/better xml library for Ada out there?

You are not passing XML as input, so why would you be looking for an XML parser ?
HTML is not the same as XML at all, there are actually quite a number of differences, like self-closing tags and so on.

If your document is XHTML, then XML/Ada should have no problem accepting that. A random link I found on Google: https://developer.mozilla.org/en-US/docs/Archive/Web/Writing_JavaScript_for_HTML describes exactly the problem you are seeing, and shows how the contents of the <script> tag should be formatted to be valid XHTML (and thus be parsable by an XML parser like XML/Ada)


  reply	other threads:[~2017-09-07  6:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-07  1:10 AdaCore xmlada throws XML_Fatal_Error on <script> tag Stephen Leake
2017-09-07  6:21 ` briot.emmanuel [this message]
2017-09-07 19:56   ` Stephen Leake
2017-09-08 23:31     ` Georg Bauhaus
2017-09-07 15:12 ` gautier_niouzes
2017-09-07 20:03   ` Stephen Leake
2017-09-07 20:05   ` gautier_niouzes
2017-09-07 20:47     ` Stephen Leake
2017-09-07 20:52       ` Stephen Leake
2017-09-07 20:54         ` Stephen Leake
2017-09-07 21:46       ` gautier_niouzes
2017-09-08  2:12         ` Stephen Leake
2017-09-08  5:38           ` Stephen Leake
2017-09-08 16:55             ` Shark8
2017-09-09 18:07             ` Stephen Leake
2017-09-09 19:35               ` Simon Wright
2017-09-08  5:40           ` gautier_niouzes
replies disabled

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