* Michael Hucka <mhucka@caltech.edu> [2011-04-18 17:01] writes:
> >> (5) <listOfCompartments>
> >> (6) <compartment name="SPIKE_cell"/>
> >> (7) </listOfCompartments>
> >
> >
> > validating the resulting xml in the online validator gives an error.
> > "Error Line 6 Column 39: (XML Error #1015) Missing a required XML
> > attribute. The compartment attribute 'id' is required."
> >
> > What am i doing wrong?
>
> The field 'id' is a required field on compartment objects in SBML. 'name' is optional. Best thing is to read section 3.3 in the SBML L2v4 specification, available from http://precedings.nature.com/documents/2715/version/1
They actually did call 'setId' earlier in the code--as it turned out
later, it was because they were by default creating a l1v1 object, and
that call had failed, or something.