Relax NG is a schema language for XML (2014)
Frotag
39 points
25 comments
March 05, 2026
Related Discussions
Found 5 related stories in 42.6ms across 3,471 title embeddings via pgvector HNSW
- XML is a cheap DSL y1n0 · 246 pts · March 14, 2026 · 44% similar
- GLiNER2: Unified Schema-Based Information Extraction apwheele · 48 pts · March 05, 2026 · 42% similar
- Libxml2 Enterprise Edition (AGPL, from the previous maintainer) todsacerdoti · 51 pts · March 02, 2026 · 41% similar
- RX – a new random-access JSON alternative creationix · 53 pts · March 18, 2026 · 39% similar
- Show HN: NERDs – Entity-centered long-term memory for LLM agents tdaltonc · 13 pts · March 06, 2026 · 38% similar
Discussion Highlights (2 comments)
masklinn
I’ve become ambivalent about relaxng, I used it a bunch because I like(d) the model, and the “Compact” syntax is really quite readable, and it’s a lot simpler than XML schemas. However the error messages, at least when doing rng validation via libxml2, are absolutely useless, so when you have a schema error finding out why tends to be quite difficult. I also recall that trying to allow foreign schema content inside your document without validating it, but still validating your own schema, is a bit of a hassle.
jitl
the compact non-xml syntax is neat: https://relaxng.org/compact-tutorial-20030326.html#id2814005 it reminds me of TypeScript. As for XML itself, it seems like it was a huge buzzword fad in the late 90s/early 2000s, but it must not have lived up to the hype or we’d actually be using it today instead of JSON and Protobuf. I got to computer programming around when the web gave up on XHTML, so i’m not really sure what to make of the XML cultural moment. The vibe i get is of focus on precise data semantics for its own sake, very Cathedral, effort that didn’t end up delivering benefit to humans. What do you think?