Skip to content
Snippets Groups Projects
Commit e6675e13 authored by Lange, Dr. Herbert's avatar Lange, Dr. Herbert
Browse files

add missing quotes in xpath expression

parent a7905a81
No related branches found
No related tags found
1 merge request!6add feature to load criteria file from resource and place all criteria files...
...@@ -55,7 +55,8 @@ public class ELANTierStructureChecker extends TierStructureChecker { ...@@ -55,7 +55,8 @@ public class ELANTierStructureChecker extends TierStructureChecker {
String.join("|", speakers),"speaker")); String.join("|", speakers),"speaker"));
// Also get constraints // Also get constraints
Element linguisticTypeElement = Element linguisticTypeElement =
(Element) XPath.newInstance("//LINGUISTIC_TYPE[@LINGUISTIC_TYPE_ID=" + id.getValue() + "]") (Element) XPath.newInstance("//LINGUISTIC_TYPE[@LINGUISTIC_TYPE_ID=\"" +
id.getValue() + "\"]")
.selectSingleNode(((ELANData) cd).getJdom()); .selectSingleNode(((ELANData) cd).getJdom());
if (linguisticTypeElement != null) { if (linguisticTypeElement != null) {
Attribute constraints = linguisticTypeElement.getAttribute("CONSTRAINTS"); Attribute constraints = linguisticTypeElement.getAttribute("CONSTRAINTS");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment