Code example for Element

Methods: getAttributegetParentNode

0
		return false; 
	} 
	 
	private void availabiltyEquals(Element el)
	{ 
		String label = el.getAttribute("label");
		Element parent = (Element) el.getParentNode();
		long avail_from;
		try{ 
			avail_from = Integer.parseInt(parent.getAttribute("available_from"));
		} 
		catch(NumberFormatException e)
		{ 
			avail_from = 0;
		} 
		long unixTime = System.currentTimeMillis() / 1000L;
		 
		if(avail_from < unixTime)
		{ 
			if(label.equals("DVD"))
Connect your IDE to all the code out there  Get Codota for Java