Skip to content

Instantly share code, notes, and snippets.

@dbellettini
Created December 27, 2013 11:47
Show Gist options
  • Save dbellettini/8146038 to your computer and use it in GitHub Desktop.
Save dbellettini/8146038 to your computer and use it in GitHub Desktop.
Weird conditions
List<Element> parameters = root.getChildren("parameter", ns);
int ip;
for(ip=0;ip<parameters.size();ip++)
{
if( parameters.get(ip).getAttributeValue("name").equalsIgnoreCase("new_results"))
{
break;
}
}
if(!(ip<parameters.size()))
{
System.out.println("ERROR:SSAP_XMLTools:get_SPARQL_indication:(results) not found!");
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment