Class Nokogiri::XML::Schema
In: lib/nokogiri/ffi/xml/schema.rb
lib/nokogiri/xml/schema.rb
ext/nokogiri/xml_xpath_context.c
Parent: Object

call-seq:

 from_document(doc)

Create a new Schema from the Nokogiri::XML::Document doc

Methods

Attributes

errors  [RW]  Errors while parsing the schema file

Public Class methods

Create a new Nokogiri::XML::Schema object using a string_or_io object.

Create a new Schema from the contents of string

Public Instance methods

Returns true if thing is a valid Nokogiri::XML::Document or file.

Validate thing against this schema. thing can be a Nokogiri::XML::Document object, or a filename. An Array of Nokogiri::XML::SyntaxError objects found while validating the thing is returned.

[Validate]