| MathSBML Home Page | MathSBML Site Map |
ann=annotationToSymbolicSBML[fred->wilma, barney->betty]; addSpecies[X, annotation->ann];Note that the value of ann in this case is
XMLElement["annotation",{"xmlns:"->""},
{XMLElement["fred",{},{"wilma"}], XMLElement["barney",{},{"betty"}]}]
addSpecies[X, annotation->{fred->wilma, barney->betty}]
To set the value of the annotation namespace, see setAnnotationNamespace
To set the value of the annotation package, see setAnnotationPackage
To set model annotations use setModelAnnotation.
To set SBML file annotations use setSBMLAnnotation.
New in MathSBML version 2.3.0. Revised in 2.3.1, 2.4.7.Input: setAnnotationNamespace["http://flintstones"]; setAnnotationPackage["bedrock"]; addSpecies[X, annotation->{fred->wilma,barney->betty}; createModel[]; Output: <?xml version="1.0" encoding="UTF-8"?> <!-- Generated 1-May-2004 08:44:50.280268 --> <!-- Generated by MathSBML 2.3.1b (1-May-2004) --> <sbml xmlns="http://www.sbml.org/sbml/level2" level="2" version="1"> <model id="test" name="test"> <!-- <listOfFunctionDefinitions/> --> <!-- <listOfUnitDefinitions/> --> <listOfCompartments> <compartment id="Compartment1" name="Compartment1"/> </listOfCompartments> <listOfSpecies> <species id="X" name="X" compartment="Compartment1" boundaryCondition="false" constant="false"> <annotation xmlns:bedrock="http://flintstones.com"> <bedrock:fred>wilma</fred> <bedrock:barney>betty</barney> </annotation> </species> </listOfSpecies> <!-- <listOfParameters/> --> <!-- <listOfRules/> --> <!-- <listOfReactions/> --> <!-- <listOfEvents/> --> </model> </sbml>[03-15-04]