Commit 6d78f8e1 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

use root element

parent 7909be00
......@@ -80,7 +80,7 @@ public class KineticsXmlParser {
try {
StringBuilder result = new StringBuilder();
result.append("<kineticLaw>");
Node mathNode = XmlParser.getXmlDocumentFromString(kinetics.getDefinition()).getFirstChild();
Node mathNode = XmlParser.getXmlDocumentFromString(kinetics.getDefinition()).getDocumentElement();
for (Node ciNode : XmlParser.getAllNotNecessirellyDirectChild("ci", mathNode)) {
String id = XmlParser.getNodeValue(ciNode).trim();
Element element = model.getElementByElementId(id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment