Need advice on XML representation

53 views
Skip to first unread message

Hendrik Boom

unread,
Mar 9, 2020, 10:06:19 AM3/9/20
to Racket Users
I need a recommendation.
I have a bunch of XML to read in, interpret, process, and to write out as corresponding Racket code.
The resulting Racket code will not be XMLis at all.
Searchni, I find mention of SXML, xexprs, and there seems to be an XML package as sell.

Which is mode useful, considering likely longevity, support code, compatibility with standards, and so forth.

Are any of these amenable producing output while reading input, in case my code ever needs to be run on a small computer?

-- hendrik

Tom Gillespie

unread,
Mar 10, 2020, 7:46:31 PM3/10/20
to Racket Users, ne...@neilvandyke.org
Hi Hendrik,
    I explored this question when I had to decide how to implement an exchange format for identifier metadata. SXML supports more of the standard, specifically for my use cases it was critical that I have support and representation for xml namespaces, which xexprs in racket do not have. Depending on your exact use cases sxml also has built in support for sxpath queries, which I used for webscraping here. In short, if you have to work with more of XML than just the fact that it has SGML syntax I would strongly recommend SXML over any of the alternatives. Neil Van Dyke (cced) is the current maintainer of sxml and some associated libraries, and might be able to give a more concrete answer to some of your questions if you don't find answers in some of the links below. Best!
Tom

Two threads with relevant information.
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!searchin/racket-users/sxml|sort:date/racket-users/QsTMrgfzBxQ/VghJQURTGAAJ
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/racket-users/NMv8ezKStZU/-4D9J-okCgAJ


--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/20200309140608.5f5tztvwns543tiv%40topoi.pooq.com.

Neil Van Dyke

unread,
Mar 10, 2020, 8:13:14 PM3/10/20
to Tom Gillespie, Racket Users
Thank you, Tom.

This document might help answer some of the understandable confusion
behind Hendrik's question: https://www.neilvandyke.org/racket/sxml-intro/

A clarification on credit where it's due: John Clements did considerable
work to clean up and document Oleg Kiselyov's various SXML packages for
modern Racket, and maintains those.

I wrote a few other SXML-based packages: https://www.neilvandyke.org/racket/

If anyone has a deep-pocketed commercial need for some new HTML or XML
libraries for Racket, I might have some consulting time available, but
haven't had time for pro bono work lately.

(I'm not normally on racket-users; if anything I should see, please
email me directly.)

Reply all
Reply to author
Forward
0 new messages