From: Richard A. <ric...@ed...> - 2011-11-25 17:25:32
|
Hello All, I'm doing some work with adding /changing model XML via the Change elements - I think we really need to state somewhere that the added XML should be in its own namespace. As it stands, arbritary XML contained in a NewXML element is included in the SED-ML namespace. E.g., currently ( for an SBML model, for example ) <listOfChanges> <addXML target="/sbml:sbml/sbml:model/sbml:listOfParameters"> <newXML> <parameter metaid="metaid_0000010" id="newParam1" value="0.7" /> <parameter metaid="metaid_0000011" id="newParam2" value="0.7" /> </newXML> </addXML> </listOfChanges> is currently valid, but I think it should be: <listOfChanges> <addXML target="/sbml:sbml/sbml:model/sbml:listOfParameters"> <newXML> <parameter xmlns="http://www.sbml.org/sbml/level2" metaid="metaid_0000010" id="newParam1" value="0.7" /> <parameter xmlns="http://www.sbml.org/sbml/level2" metaid="metaid_0000011" id="newParam2" value="0.7" /> </newXML> </addXML> </listOfChanges> Or, declare in the toplevel of the sedML, for example. <sedML xmlns:sbml="http://www.sbml.org/sbml/level2" ... > ... <listOfChanges> <addXML target="/sbml:sbml/sbml:model/sbml:listOfParameters"> <newXML> <sbml:parameter metaid="metaid_0000010" id="newParam1" value="0.7" /> <sbml:parameter metaid="metaid_0000011" id="newParam2" value="0.7" /> </newXML> </addXML> </listOfChanges> Cheers Richard Dr Richard Adams Software Development Team Leader, Centre For Systems Biology Edinburgh University of Edinburgh Tel: 0131 651 9019 email : ric...@ed... Web: http://csbe.bio.ed.ac.uk/adams.php -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. |