comp.lang.ada
 help / color / mirror / Atom feed
* AdaCore xmlada throws XML_Fatal_Error on <script> tag
@ 2017-09-07  1:10 Stephen Leake
  2017-09-07  6:21 ` briot.emmanuel
  2017-09-07 15:12 ` gautier_niouzes
  0 siblings, 2 replies; 17+ messages in thread
From: Stephen Leake @ 2017-09-07  1:10 UTC (permalink / 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


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

end of thread, other threads:[~2017-09-09 19:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-07  1:10 AdaCore xmlada throws XML_Fatal_Error on <script> tag Stephen Leake
2017-09-07  6:21 ` 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

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