Quoting Miguel <[EMAIL PROTECTED]>: > > The current code is resizing the atomArray if (tokenCount > atomCount) > > I think this is a mistake ... it should say something like > if (atomCount == 0) > allocate-the-atoms(tokenCount); > else if (tokenCount != atomCount) > throw-an-exception
There was one minor thing complicating this setup... you don't know the number of tokens untill you parsed the first attribute... but I guess this should work...
The same is true for <atom>. You don't know how many atoms you have till you get to </atomArray>. If all the attributes are the same length then there is no problem. Note that there is no defined "first attribute" as they can be in any order.
NOTE:
I demonstrated Jmol/CML at a major European agency yesterday. They require CML input and they were impressed. Your efforts are much appreciated and it seems that most of the problems have been overcome.
P.
Peter Murray-Rust Unilever Centre for Molecular Informatics Chemistry Department, Cambridge University Lensfield Road, CAMBRIDGE, CB2 1EW, UK Tel: +44-1223-763069
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers
