A summary of data about the Ruby ecosystem.

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

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


GitHub Events

Total
Last Year

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 Email 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:


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

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ruby/rexml

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

gem.coop: rexml

An XML toolkit for Ruby

rubygems.org: rexml

An XML toolkit for Ruby

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

  • 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-03T10:01:50.308Z (28 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
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)

  • 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-03T10:01:51.898Z (28 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
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