{"id":15032816,"url":"https://github.com/ruby/rexml","last_synced_at":"2025-05-14T05:10:37.928Z","repository":{"id":33649592,"uuid":"135525225","full_name":"ruby/rexml","owner":"ruby","description":"REXML is an XML toolkit for Ruby","archived":false,"fork":false,"pushed_at":"2025-05-07T12:03:02.000Z","size":4518,"stargazers_count":150,"open_issues_count":19,"forks_count":76,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-05-10T12:02:07.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-31T03:11:12.000Z","updated_at":"2025-05-07T12:02:36.000Z","dependencies_parsed_at":"2024-01-20T22:25:43.871Z","dependency_job_id":"af123a6e-3596-4347-98a8-5d15fdb23b28","html_url":"https://github.com/ruby/rexml","commit_stats":{"total_commits":654,"total_committers":64,"mean_commits":10.21875,"dds":0.7186544342507646,"last_synced_commit":"519ae6c0f3c0b08101e7251fddcc941308d9be87"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Frexml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Frexml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Frexml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Frexml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/rexml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253568608,"owners_count":21928903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T20:19:30.131Z","updated_at":"2025-05-14T05:10:37.878Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REXML\n\nREXML 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.\n\nREXML 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.\n\n## API\n\nSee the [API documentation](https://ruby.github.io/rexml/).\n\n## Usage\n\nWe'll start with parsing an XML document\n\n```ruby\nrequire \"rexml/document\"\nfile = File.new( \"mydoc.xml\" )\ndoc = REXML::Document.new file\n```\n\nLine 3 creates a new document and parses the supplied file. You can also do the following\n\n```ruby\nrequire \"rexml/document\"\ninclude REXML  # so that we don't have to prefix everything with REXML::...\nstring = \u003c\u003cEOF\n  \u003cmydoc\u003e\n    \u003csomeelement attribute=\"nanoo\"\u003eText, text, text\u003c/someelement\u003e\n  \u003c/mydoc\u003e\nEOF\ndoc = Document.new string\n```\n\nSo parsing a string is just as easy as parsing a file.\n\n## Support\n\nREXML support follows the same maintenance cycle as Ruby releases, as shown on \u003chttps://www.ruby-lang.org/en/downloads/branches/\u003e.\n\nIf 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.\n\nThe `required_ruby_version` on the gemspec is kept updated on a [best-effort basis](https://github.com/ruby/rexml/pull/70) by the community.\nUp to version 3.2.5, this information was not set. That version [is known broken with at least Ruby \u003c 2.3](https://github.com/ruby/rexml/issues/69).\n\n## Development\n\nAfter checking out the repo, run `rake test` to run the tests.\n\nTo 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](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/rexml.\n\n## License\n\nThe gem is available as open source under the terms of the [BSD-2-Clause](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Frexml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Frexml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Frexml/lists"}