<?xml version="1.0" encoding="UTF-8"?>
<OAI-PMH
xmlns="http://www.openarchives.org/OAI/2.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"
>
<responseDate>2016-01-08T12:37:55Z</responseDate>
<request verb="GetRecord">http://test.host/api/oai_pmh/kinds</request>
<GetRecord>
<record>
<header>
<identifier>12345</identifier>
<datestamp>2016-01-08T12:37:55Z</datestamp>
</header>
<metadata>
<oai_dc:dc
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/
http://www.openarchives.org/OAI/2.0/oai_dc.xsd"
>
<dc:identifier>12345</dc:identifier>
<dc:type>Type</dc:type>
<dc:type>Kind</dc:type>
<dc:type>EntityType</dc:type>
<dc:description>some description</dc:description>
</oai_dc:dc>
</metadata>
</record>
</GetRecord>
</OAI-PMH>
xsd_response = HTTPClient.new.get "http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"
xsd = Nokogiri::XML::Schema(xsd_response.body)
doc = Nokogiri::XML(doc_string)
xsd.validate(doc).each do |error|
puts "#{error.line} :: #{error.message}"
end
:: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'oai_dc:dc'.
<xs:any namespace="##other" />
--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at https://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.