[MOBY-dev] createInstanceFromDOM

Sylvie Huchet sylvie.huchet at enst-bretagne.fr
Tue Feb 12 14:38:31 UTC 2008


Hi,

I would like to create a biomoby instance from a file that contains data.

The data file is an XML file that comply (or should comply) with biomoby format.
I thought that if the file contained a data type that is not a biomoby data type
(doesn't belong to the object ontology), the createInstanceFromDOM method would
throw an exception, but that is not the case. A NullPointerException is thrown
by an inner method (MobyDatacomposite constructor).

Should I use another method to check that the data type present in the data file
is correct or is it a problem with createInstanceFromDOM that should throw an
exception ?

Thanks, and
Best regards,
Sylvie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylvie.huchet.vcf
Type: text/x-vcard
Size: 215 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20080212/a04070c0/attachment-0002.vcf>


More information about the MOBY-dev mailing list