|
From: Tobias H. <tob...@un...> - 2006-03-09 12:53:57
|
we now additionally tried it out unsing: CMLBuilder builder =3D new CMLBuilder(false); still getting the same error, so i dont think it is a validation problem.= .. tobias Egon Willighagen wrote: >> At 20:09 08/03/2006, Egon Willighagen wrote: >> I have now replaced this by: >> <cml:molecule xmlns:cml=3D"http://www.xml-cml.org/schema" >> xsi:schemaLocation=3D"http://www.xml-cml.org/schema ../../schema.xsd= " >> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >> > >> <cml:atomArray atomID=3D"a1 a2 a3 a4" elementType=3D"C C O O" >> formalCharge=3D"0 0 0 0" /> >> <cml:bondArray atomRef1=3D"a1 a2 a2" atomRef2=3D"a2 a3 a4" order=3D"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? >> =20 > > No, it's just using the CMLBuilder with this code: > > CMLBuilder builder =3D new CMLBuilder(); > CMLElement cmlElement =3D null; > try { > cmlElement =3D (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 > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uage > that extends applications into web and mobile media. Attend the live we= bcast > and join the prime developer group breaking into this new coding territ= ory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > cml-discuss mailing list > cml...@li... > https://lists.sourceforge.net/lists/listinfo/cml-discuss > =20 --=20 Tobias Helmus Junior Research Group for Applied Bioinformatics (http://almost.cubic.uni= -koeln.de/jrg) Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de) Z=FClpicher Str. 47 50674 Cologne Tel: +49(0)221-470-7428 / +49(0)221-2913909 =20 Fax: +49 (0) 221-470-7786 My public PGP key is available at http://pgp.mit.edu |