tharriso
02-14-2005, 07:57 PM
I've got an .xml response that validates w. xerces but not w. XMLSpy.
Here's the response:
<?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>2005-02-14T17:22:47Z</responseDate>
<request verb="GetRecord"
identifier="http://whiskey.cs.odu.edu/ltrs-pdfs/NASA-71-tnd6193.pdf"
metadataPrefix="oai_dc">http://whiskey.cs.odu.edu/modoai</request>
<GetRecord>
<record>
<header>
<identifier>http://whiskey.cs.odu.edu/ltrs-pdfs/NASA-71-tnd6193.pdf</identifier>
<datestamp>2004-01-01T05:00:00Z</datestamp>
<setSpec>mime:application:pdf</setSpec>
</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:date>2004-01-01T05:00:00</dc:date>
<dc:format>application/pdf</dc:format>
<dc:format>13756 bytes</dc:format>
<dc:identifier>http://whiskey.cs.odu.edu/ltrs-pdfs/NASA-71-tnd6193.pdf</dc:identifier>
</oai_dc:dc>
</metadata>
</record>
</GetRecord>
</OAI-PMH>
and here's the XMLSpy validation error:
(on the <oai_dc:dc> tag) No element declaration found.
This has got me stumped...
When I pulled out <oai_dc:dc .....> ....</oai_dc:dc> and created a standalone .xml doc with it, this validates just fine w. XMLSpy.
I can figure out what's making it choke..
Any ideas are welcomed.
Thanks,
Terry
Here's the response:
<?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>2005-02-14T17:22:47Z</responseDate>
<request verb="GetRecord"
identifier="http://whiskey.cs.odu.edu/ltrs-pdfs/NASA-71-tnd6193.pdf"
metadataPrefix="oai_dc">http://whiskey.cs.odu.edu/modoai</request>
<GetRecord>
<record>
<header>
<identifier>http://whiskey.cs.odu.edu/ltrs-pdfs/NASA-71-tnd6193.pdf</identifier>
<datestamp>2004-01-01T05:00:00Z</datestamp>
<setSpec>mime:application:pdf</setSpec>
</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:date>2004-01-01T05:00:00</dc:date>
<dc:format>application/pdf</dc:format>
<dc:format>13756 bytes</dc:format>
<dc:identifier>http://whiskey.cs.odu.edu/ltrs-pdfs/NASA-71-tnd6193.pdf</dc:identifier>
</oai_dc:dc>
</metadata>
</record>
</GetRecord>
</OAI-PMH>
and here's the XMLSpy validation error:
(on the <oai_dc:dc> tag) No element declaration found.
This has got me stumped...
When I pulled out <oai_dc:dc .....> ....</oai_dc:dc> and created a standalone .xml doc with it, this validates just fine w. XMLSpy.
I can figure out what's making it choke..
Any ideas are welcomed.
Thanks,
Terry