我想像这样输出
id = C00001 名称 = H2O id = C00002 名称 = ATP
并输入
ids = {"C00001","C00002"...} 名称 = {"H2O", "ATP"...}
如何编码?
我可以像阅读
<spescies>H2O</species>
但我不能这样读:
<species id="C00001" name="H2O"/>
这里是整个 XML 示例:
<?xml version="1.0" encoding="UTF-8" ?>
<sbml xmlns="http://www.sbml.org/sbml/level2" level="2" version="1"
xmlns:html="http://www.w3.org/1999/xhtml">
<model id="ehmn">
<listOfCompartments>
<compartment id="Human"/>
</listOfCompartments>
<listOfSpecies>
<species id="C00001" name="H2O"/>
<species id="C00002" name="ATP"/>
<species id="C00003" name="NAD+"/>
<species id="C00004" name="NADH"/>
</listOFSpeceies>
</model>
</sbml>
没有错误