https://github.com/ruby/rexml
REXML is an XML toolkit for Ruby
https://github.com/ruby/rexml
Keywords from Contributors
rubygems repl webrick bigdecimal debugger debugging-tool strscan documentation-tool activerecord rubocop
Last synced: about 4 hours ago
JSON representation
Repository metadata
REXML is an XML toolkit for Ruby
- Host: GitHub
- URL: https://github.com/ruby/rexml
- Owner: ruby
- License: bsd-2-clause
- Created: 2018-05-31T03:11:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-12-20T01:16:27.000Z (2 months ago)
- Last Synced: 2026-02-28T11:26:20.897Z (3 days ago)
- Language: Ruby
- Homepage:
- Size: 4.9 MB
- Stars: 165
- Watchers: 41
- Forks: 95
- Open Issues: 19
- Releases: 19
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.txt
README.md
REXML
REXML was inspired by the Electric XML library for Java, which features an easy-to-use API, small size, and speed. Hopefully, REXML, designed with the same philosophy, has these same features. I've tried to keep the API as intuitive as possible, and have followed the Ruby methodology for method naming and code flow, rather than mirroring the Java API.
REXML supports both tree and stream document parsing. Stream parsing is faster (about 1.5 times as fast). However, with stream parsing, you don't get access to features such as XPath.
API
See the API documentation.
Usage
We'll start with parsing an XML document
require "rexml/document"
file = File.new( "mydoc.xml" )
doc = REXML::Document.new file
Line 3 creates a new document and parses the supplied file. You can also do the following
require "rexml/document"
include REXML # so that we don't have to prefix everything with REXML::...
string = <<EOF
<mydoc>
<someelement attribute="nanoo">Text, text, text</someelement>
</mydoc>
EOF
doc = Document.new string
So parsing a string is just as easy as parsing a file.
Support
REXML support follows the same maintenance cycle as Ruby releases, as shown on https://www.ruby-lang.org/en/downloads/branches/.
If you are running on an end-of-life Ruby, do not expect modern REXML releases to be compatible with it; in fact, it's recommended that you DO NOT use this gem, and instead use the REXML version that came bundled with your end-of-life Ruby version.
The required_ruby_version on the gemspec is kept updated on a best-effort basis by the community.
Up to version 3.2.5, this information was not set. That version is known broken with at least Ruby < 2.3.
Development
After checking out the repo, run rake test to run the tests.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/rexml.
License
The gem is available as open source under the terms of the BSD-2-Clause.
Owner metadata
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Create event: 5
- Commit comment event: 4
- Release event: 5
- Delete event: 1
- Pull request event: 92
- Fork event: 19
- Issues event: 39
- Watch event: 22
- Issue comment event: 198
- Push event: 104
- Pull request review event: 147
- Pull request review comment event: 189
Last Year
- Create event: 2
- Commit comment event: 1
- Release event: 2
- Delete event: 1
- Pull request event: 55
- Fork event: 10
- Issues event: 22
- Watch event: 12
- Issue comment event: 93
- Push event: 59
- Pull request review event: 123
- Pull request review comment event: 164
Committers metadata
Last synced: 2 days ago
Total Commits: 712
Total Committers: 66
Avg Commits per committer: 10.788
Development Distribution Score (DDS): 0.521
Commits in past year: 42
Committers in past year: 7
Avg Commits per committer in past year: 6.0
Development Distribution Score (DDS) in past year: 0.429
| Name | Commits | |
|---|---|---|
| Sutou Kouhei | k****u@c****m | 341 |
| NAITOH Jun | n****h@g****m | 72 |
| ser | s****r@b****e | 43 |
| nobu | n****u@b****e | 30 |
| SHIBATA Hiroshi | h****t@r****g | 25 |
| matz | m****z@b****e | 24 |
| Burdette Lamar | B****r@Y****m | 21 |
| naruse | n****e@b****e | 18 |
| Watson | w****8@g****m | 17 |
| |7eter l-|. l3oling | p****g@g****m | 9 |
| mame | m****e@b****e | 8 |
| Hiroya Fujinami | m****n@g****m | 7 |
| akr | a****r@b****e | 5 |
| shugo | s****o@b****e | 5 |
| Akira Matsuda | r****e@d****p | 4 |
| usa | u****a@b****e | 4 |
| drbrain | d****n@b****e | 4 |
| dependabot[bot] | 4****] | 4 |
| Ariel Zelivansky | a****l@t****m | 4 |
| ayumin | a****n@b****e | 3 |
| eban | e****n@b****e | 3 |
| marcandre | m****e@b****e | 3 |
| tomoya ishida | t****n@g****m | 3 |
| zzak | z****k@b****e | 3 |
| Alyssa Ross | hi@a****s | 2 |
| Ivo Anjo | i****o@i****e | 2 |
| Kazuhiro NISHIYAMA | zn@m****m | 2 |
| OlofKalufs | O****s | 2 |
| Viktor Ivarsson | v****n@t****m | 2 |
| duerst | d****t@b****e | 2 |
| and 36 more... | ||
Committer domains:
- clear-code.com: 2
- ifttt.com: 1
- jeremyevans.net: 1
- shopify.com: 1
- cpan.org: 1
- boanderson.me: 1
- timcraft.com: 1
- twingly.com: 1
- mbf.nifty.com: 1
- ivoanjo.me: 1
- alyssa.is: 1
- twistlock.com: 1
- dio.jp: 1
- ruby-lang.org: 1
Issue and Pull Request metadata
Last synced: 30 days ago
Total issues: 84
Total pull requests: 310
Average time to close issues: about 2 months
Average time to close pull requests: 5 days
Total issue authors: 54
Total pull request authors: 49
Average comments per issue: 3.58
Average comments per pull request: 1.46
Merged pull request: 263
Bot issues: 0
Bot pull requests: 3
Past year issues: 19
Past year pull requests: 76
Past year average time to close issues: 2 days
Past year average time to close pull requests: 4 days
Past year issue authors: 11
Past year pull request authors: 9
Past year average comments per issue: 3.32
Past year average comments per pull request: 1.38
Past year merged pull request: 55
Past year bot issues: 0
Past year bot pull requests: 2
Top Issue Authors
- pboling (9)
- kou (8)
- MarcoCostantini (4)
- BurdetteLamar (4)
- naitoh (3)
- mirko314 (3)
- edouard (2)
- MahtraDR (2)
- pulver (2)
- vikiv480 (2)
- makenowjust (2)
- robertfall (1)
- jcavalieri (1)
- plaicy (1)
- hsbt (1)
Top Pull Request Authors
- naitoh (126)
- Watson1978 (25)
- BurdetteLamar (24)
- pboling (22)
- makenowjust (13)
- nobu (9)
- hsbt (6)
- tompng (6)
- kou (5)
- vikiv480 (4)
- Bo98 (4)
- Beagle123 (4)
- dependabot[bot] (3)
- gemmaro (3)
- zelivans (3)
Top Issue Labels
- question (1)
- bug (1)
- documentation (1)
Top Pull Request Labels
- documentation (20)
- dependencies (3)
- github_actions (2)
- bug (1)
Package metadata
- Total packages: 23
-
Total downloads:
- rubygems: 1,431,951,502 total
- Total docker downloads: 8,545,176,412
- Total dependent packages: 295 (may contain duplicates)
- Total dependent repositories: 268,429 (may contain duplicates)
- Total versions: 131
- Total maintainers: 5
- Total advisories: 16
gem.coop: rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Documentation: http://www.rubydoc.info/gems/rexml/
- Licenses: BSD-2-Clause
- Latest release: 3.4.4 (published 6 months ago)
- Last Synced: 2026-03-01T17:02:32.832Z (2 days ago)
- Versions: 29
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 715,849,254 Total
- Docker Downloads: 4,272,588,206
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.009%
- Downloads: 0.027%
- Maintainers (4)
- Advisories:
rubygems.org: rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Documentation: http://www.rubydoc.info/gems/rexml/
- Licenses: BSD-2-Clause
- Latest release: 3.4.4 (published 6 months ago)
- Last Synced: 2026-03-02T09:04:04.152Z (1 day ago)
- Versions: 29
- Dependent Packages: 269
- Dependent Repositories: 268,429
- Downloads: 716,102,248 Total
- Docker Downloads: 4,272,588,206
-
Rankings:
- Docker downloads count: 0.012%
- Downloads: 0.044%
- Dependent repos count: 0.089%
- Dependent packages count: 0.161%
- Average: 1.535%
- Forks count: 3.684%
- Stargazers count: 5.218%
- Maintainers (4)
- Advisories:
proxy.golang.org: github.com/ruby/rexml
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby/rexml#section-documentation
- Licenses: bsd-2-clause
- Latest release: v3.4.4+incompatible (published 6 months ago)
- Last Synced: 2026-03-01T15:23:54.102Z (2 days ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 3.503%
- Stargazers count: 4.407%
- Average: 7.072%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
alpine-v3.15: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.2.5-r1 (published over 4 years ago)
- Last Synced: 2026-03-01T12:24:18.574Z (2 days ago)
- Versions: 1
- Dependent Packages: 14
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 4.749%
- Average: 7.46%
- Forks count: 11.673%
- Stargazers count: 13.42%
- Maintainers (1)
alpine-v3.18: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.2.5-r3 (published almost 3 years ago)
- Last Synced: 2026-02-03T16:22:15.564Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 8.874%
- Forks count: 16.224%
- Stargazers count: 19.271%
- Maintainers (1)
alpine-v3.18: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.2.5-r3 (published almost 3 years ago)
- Last Synced: 2026-02-03T16:20:13.552Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 8.874%
- Forks count: 16.224%
- Stargazers count: 19.271%
- Maintainers (1)
alpine-v3.17: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.2.5-r2 (published almost 4 years ago)
- Last Synced: 2026-02-03T16:34:45.239Z (28 days ago)
- Versions: 1
- Dependent Packages: 8
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 4.452%
- Average: 9.226%
- Forks count: 14.938%
- Stargazers count: 17.514%
- Maintainers (1)
alpine-v3.16: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.2.5-r2 (published almost 4 years ago)
- Last Synced: 2026-03-01T01:00:14.806Z (3 days ago)
- Versions: 1
- Dependent Packages: 2
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 9.808%
- Dependent packages count: 12.044%
- Forks count: 12.508%
- Stargazers count: 14.68%
- Maintainers (1)
alpine-v3.15: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.2.5-r1 (published over 4 years ago)
- Last Synced: 2026-02-03T20:18:41.090Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Forks count: 11.673%
- Average: 12.669%
- Stargazers count: 13.42%
- Dependent packages count: 25.585%
- Maintainers (1)
alpine-edge: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.4.4-r0 (published about 2 months ago)
- Last Synced: 2026-02-06T19:04:41.215Z (25 days ago)
- Versions: 8
- Dependent Packages: 2
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 13.156%
- Dependent packages count: 14.641%
- Forks count: 17.247%
- Stargazers count: 20.734%
- Maintainers (1)
alpine-edge: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.4.4-r0 (published about 2 months ago)
- Last Synced: 2026-02-06T19:02:54.496Z (25 days ago)
- Versions: 9
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 13.156%
- Dependent packages count: 14.641%
- Forks count: 17.247%
- Stargazers count: 20.734%
- Maintainers (1)
alpine-v3.16: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.2.5-r2 (published almost 4 years ago)
- Last Synced: 2026-03-01T01:00:02.246Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Forks count: 12.508%
- Average: 13.625%
- Stargazers count: 14.68%
- Dependent packages count: 27.311%
- Maintainers (1)
alpine-v3.17: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.2.5-r2 (published almost 4 years ago)
- Last Synced: 2026-02-03T13:41:47.407Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 14.926%
- Forks count: 14.938%
- Stargazers count: 17.514%
- Dependent packages count: 27.254%
- Maintainers (1)
alpine-v3.23: ruby-rexml
An XML toolkit for Ruby
alpine-v3.20: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.4.4-r0 (published 3 months ago)
- Last Synced: 2026-02-02T22:08:54.849Z (29 days ago)
- Versions: 4
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.23: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
alpine-v3.22: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.4.1-r0 (published 10 months ago)
- Last Synced: 2026-03-01T01:10:14.181Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.21: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.4.4-r0 (published 3 months ago)
- Last Synced: 2026-03-01T01:25:43.485Z (3 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.22: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.4.1-r0 (published 10 months ago)
- Last Synced: 2026-03-01T01:16:31.188Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.21: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.4.4-r0 (published 3 months ago)
- Last Synced: 2026-03-01T01:31:19.220Z (3 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.20: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.4.4-r0 (published 3 months ago)
- Last Synced: 2026-02-14T15:47:15.081Z (17 days ago)
- Versions: 5
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.19: ruby-rexml
An XML toolkit for Ruby
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.3.9-r1 (published over 1 year ago)
- Last Synced: 2026-02-14T13:21:29.099Z (17 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.19: ruby-rexml-doc
An XML toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/rexml
- Licenses: BSD-2-Clause
- Latest release: 3.3.9-r1 (published over 1 year ago)
- Last Synced: 2026-02-14T13:17:29.650Z (17 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
Score: 32.42817936513615