System.out.println("Element found"); System.out.println(" Name: " + curElement.getName());
if (debug>0) { System.out.println("Element found"); System.out.println(" Name: " + curElement.getName()); }
	public void getScriptNames() {		XPath xpathSelector = DocumentHelper.createXPath("//script");		List results = xpathSelector.selectNodes(xmlDocument);		Element curElement;		Attribute tempAttribute;		String tempString=new String();		for (Iterator elementIterator=results.iterator();elementIterator.hasNext();) {			curElement = (Element)elementIterator.next();			System.out.println("Element found");			System.out.println(" Name: " + curElement.getName());			try {				tempAttribute=curElement.attribute("id");				tempString=tempAttribute.getValue();			} catch (Exception e) {				try {					tempAttribute=curElement.attribute("name");					tempString=tempAttribute.getValue();				} catch (Exception e2) {					System.out.println("[Error] Script without id or name");				}			}			System.out.println("  " + tempString);			scriptNames.addElement((Object)tempString);		}	}