comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: AdaCore xmlada throws XML_Fatal_Error on <script> tag
Date: Wed, 6 Sep 2017 18:10:33 -0700 (PDT)
Date: 2017-09-06T18:10:33-07:00	[thread overview]
Message-ID: <ca76ab44-e854-42ba-ae0a-3e5e5f86cc30@googlegroups.com> (raw)

I'm trying to write code to use AdaCore xmlada to parse a web page (an album listing on Discogs; https://www.discogs.com/Beth-Nielsen-Chapman-You-Hold-The-Key/release/9938848 for example) to extract information.

For now, I'm manually copying the file to my local disk; I can change that to use http access later.

The file has <script> </script> elements that the xmlada Sax reader can't handle; it tries to parse the content of the tag, which of course is _not_ in xml format.

In my brief study of the manual and the code, I don't see any way to add a hook function that would let me specify how to parse that tag; is there such a feature?

Failing that, I guess I'll have to edit the xmlada code to add support for <script>.

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

-- Stephe


             reply	other threads:[~2017-09-07  1:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-07  1:10 Stephen Leake [this message]
2017-09-07  6:21 ` AdaCore xmlada throws XML_Fatal_Error on <script> tag briot.emmanuel
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