| What it is | Ruby bindings for the libxml2 XML toolkit | Read, write, modify and query XML and HTML from Ruby |
| Kind | Open source | Open source |
| Trust | 0.30 | 0.69 |
| Stars | 130 | 6294 |
| Last commit | 2026-04-08 | 2026-11-21 |
| Licence | MIT | MIT |
| Pricing | Free and open source | Free and open source |
| Free tier | Yes | Yes |
| Self-hostable | — | — |
| Ways to run it | — | — |
| SOC 2 | — | — |
| HIPAA | — | — |
| SSO | — | — |
| API | — | — |
| Plugins | — | — |
| MCP server | — | — |
| Company | xml4r | Sparkle Motion |
| Features | - read and write XML files
- XPath search
- XML validation
| - DOM parser for XML, HTML4 and HTML5
- SAX parser for XML and HTML4
- push parser for XML and HTML4
- document search via XPath 1.0
- document search via CSS3 selectors, with some jQuery-like extensions
- XSD schema validation
- XSLT transformation
- Builder DSL for XML and HTML documents
- All 10 features
|
| Limitations | - Builds a native extension against libxml2, so the libxml2 headers and xml2-config must be found at install time.
| - Behaves differently by parser: it stays a thin layer over libxml2, libgumbo and xerces and doesn't paper over their differences, so CRuby and JRuby can give different results
- Searches with XPath 1.0 only: it doesn't support XPath 2.0 or 3.x
- Needs a C toolchain off its native platforms: elsewhere the gem compiles its C extension and needs Ruby headers and system libraries
|