Oga is an XML/HTML parser written in Ruby. Oga is an XML/HTML parser written in Ruby. It provides an easy-to-use API for parsing, modifying and querying documents (using XPath expressions). Oga does not require system libraries such as libxml, making it easier and faster to install on various platforms. To achieve better performance Oga uses a small, native extension (C for MRI/Rubinius, Java for JRuby). Oga provides an API that allows you to safely parse and query documents in a multi-threaded environment, without having to worry about your applications blowing up. Oga uses the version format MAJOR.MINOR (e.g. 2.1). An increase of the MAJOR version indicates backwards incompatible changes were introduced. The MINOR version is only increased when changes are backwards compatible, regardless of whether those changes are bugfixes or new features. Up until version 1.0 the code should be considered unstable meaning it can change (and break) at any given moment.

Features

  • Support for parsing XML and HTML(5)
  • Low memory footprint
  • High performance (taking into account most work happens in Ruby)
  • Support for XPath 1.0
  • XML namespace support (registering, querying, etc)
  • CSS3 selector support

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML

License

Mozilla Public License 1.0 (MPL)

Follow Oga

Oga Web Site

Other Useful Business Software
Catch Bugs Before Your Customers Do Icon
Catch Bugs Before Your Customers Do

Real-time error alerts, performance insights, and anomaly detection across your full stack. Free 30-day trial.

Move from alert to fix before users notice. AppSignal monitors errors, performance bottlenecks, host health, and uptime—all from one dashboard. Instant notifications on deployments, anomaly triggers for memory spikes or error surges, and seamless log management. Works out of the box with Rails, Django, Express, Phoenix, Next.js, and dozens more. Starts at $23/month with no hidden fees.
Try AppSignal Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Oga!

Additional Project Details

Operating Systems

Windows

Programming Language

Ruby

Related Categories

Ruby HTML XHTML

Registered

2023-04-27