From: Ricardo F. <rm...@un...> - 2006-10-09 12:50:06
|
Hi! Try editing the conf.xml file in exist program directory. In the indexer session you can turn off validation, by setting the validation attribute value to "no", as shown next: <indexer caseSensitive="yes" index-depth="1" preserve-whitespace-mixed-content="no" stemming="no" suppress-whitespace="both" tokenizer="org.exist.storage.analysis.SimpleTokenizer" track-term-freq="yes" validation="no"> Hope this helps. Bye ----- Original Message ----- From: "Stefan Kreutter" <ste...@fi...> To: "exist-open" <exi...@li...> Sent: Monday, October 09, 2006 1:32 PM Subject: [Exist-open] XML Schema validation (xsi:schemaLocation) > When inserting the following document into eXist: > > <?xml version="1.0"?> > <foo > xmlns="http://example.com/XSD/foo" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://example.com/XSD/foo foo.xsd"> > <!-- ... --> > </foo> > > I get this error: > > "Impossible to store a resource /tmp/foo.xml: > org.xml.sax.SAXParseException: schema_reference.4: Failed to read > schema document 'foo.xsd', because 1) could not find the document; 2) > the document could not be read; 3) the root element of the document > is not <xsd:schema>." > > As far as I understand the "xsi:schemaLocation" is a *hint* to XML > processors on where to find a schema and it *may* be used for > assessment (validation). For my understanding it should be possible > to store a document that is well formed XML containing a hint to > schema where the hint doesn't point to the schema. > > Is there a way to switch off schema validation based on the > xsi:schemaLocation or to not throw an error if the hint isn't helpful > (document not found)? I get this error when using org.exit.start.Main > as well as when inserting documents programatically. > > Regards, > Stefan > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > > __________ NOD32 1.1792 (20061005) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > |