return new ArrayList<Node>();
}
pathQuery = pathQuery.trim();
if(! reQueryFormat.matcher(pathQuery).matches()) {
throw new XmlModelException("Invalid pathQuery path: " + pathQuery);
}
//
// build parser
//
List<PathQueryMatcher> queryMatchers = new ArrayList<PathQueryMatcher>();
// extract path query components
Matcher parts = reQueryParts.matcher(pathQuery);
int level = 0;
while(parts.find()) {
String part = parts.group(1);
Matcher nodenameMatcher = reQueryNodename.matcher(part);
if(nodenameMatcher.matches()) {
queryMatchers.add(new NodenameMatcher(level, part));
} else {
throw new XmlModelException("Invalid pathQuery path: \"" + part + "\" in: " + pathQuery);
}
level += 1;
}
//