Skip to content

Commit

Permalink
Corrected xpath when exported to omex as vcml.
Browse files Browse the repository at this point in the history
  • Loading branch information
danv61 committed Sep 1, 2021
1 parent 82c97ae commit 34d885e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vcell-core/src/main/java/cbit/vcell/xml/XmlHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -1259,11 +1259,12 @@ public static SimulationTask XMLToSimTask(String xmlString) throws XmlParseExcep
}

public static String getXPathForListOfSpecies() {
return "/vcml:vcml/vcml:model/vcml:listOfSpecies";
// return "/vcml:vcml/vcml:model/vcml:listOfSpecies";
return "/vcml:vcml/vcml:BioModel/vcml:Model";
}

public static String getXPathForSpecies(String speciesID) {
return getXPathForListOfSpecies() + "/vcml:species[@id='" + speciesID + "']";
return getXPathForListOfSpecies() + "/vcml:LocalizedCompound[@Name='" + speciesID + "']";
}

//public static String exportSedML(VCDocument vcDoc, int level, int version, String file) throws XmlParseException {
Expand Down

0 comments on commit 34d885e

Please sign in to comment.