Exception: MultiXml::NoParserError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/multi_xml/errors.rb

Overview

Raised when no XML parser library is available

This error is raised when MultiXml cannot find any supported XML parser. Install one of: ox, nokogiri, libxml-ruby, or oga.

Examples:

Catching the error

begin
  MultiXml.parse('<root/>')
rescue MultiXml::NoParserError => e
  puts "Please install an XML parser gem"
end