|
From: Egon W. <e.w...@sc...> - 2006-03-09 12:45:55
|
> At 20:09 08/03/2006, Egon Willighagen wrote: > I have now replaced this by: > <cml:molecule xmlns:cml="http://www.xml-cml.org/schema" > xsi:schemaLocation="http://www.xml-cml.org/schema ../../schema.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > <cml:atomArray atomID="a1 a2 a3 a4" elementType="C C O O" > formalCharge="0 0 0 0" /> > <cml:bondArray atomRef1="a1 a2 a2" atomRef2="a2 a3 a4" order="1 2 1" /> > </cml:molecule> > > in schema23/examples/complex/arrays.xml > > and now it runs through ExamplesTest. > > I think your Bioclipse environment is trying to validate it against > something - not sure what. I have tried different elements and they > all fail. So it is like trying to validate with an empty DTD or > schema (or perhaps the wrong schema). I don't know *what* software is > giving the error because XOM is not a validating parser. Do you have > a validating parser bound into it? No, it's just using the CMLBuilder with this code: CMLBuilder builder = new CMLBuilder(); CMLElement cmlElement = null; try { cmlElement = (CMLElement)builder.parseString(localResourceString); } catch (IOException e) { e.printStackTrace(); setParsed(false); return false; } Where localResourceString is the String with the CML content. Is there a possibility to explicitely not use validation? Egon |