class Riddl::Handlers::XMLSchema
Public Class Methods
handle(what,hinfo)
click to toggle source
# File lib/ruby/riddl/handlers/xmlschema.rb, line 4 def self::handle(what,hinfo) w = if what.class == Riddl::Parameter::Tempfile || what.class == File XML::Smart.open_unprotected(what) else XML::Smart.string(what) end w.validate_against(XML::Smart.string(hinfo)) rescue false end