middleman-xmlvalidator 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
@@ -52,13 +52,13 @@ module Middleman
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def self.validate(document_path, schema_path)
|
55
|
-
schema = Nokogiri::XML::Schema(File.read("
|
55
|
+
schema = Nokogiri::XML::Schema(File.read("../../schema/" + schema_path))
|
56
56
|
document = Nokogiri::XML(File.read(document_path))
|
57
57
|
schema.validate(document)
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.valid(document_path, schema_path)
|
61
|
-
schema = Nokogiri::XML::Schema(File.read("
|
61
|
+
schema = Nokogiri::XML::Schema(File.read("../../schema/" + schema_path))
|
62
62
|
document = Nokogiri::XML(File.read(document_path))
|
63
63
|
schema.valid?(document)
|
64
64
|
end
|