public static Set getSet(int id)
	{
		Set set = new Set();

		Node node = nodeList.item(id);

		set.height = new Integer(node.getAttributes().getNamedItem("height").getNodeValue());

		NodeList nnm = node.getChildNodes();

		set.entities = new Entity[nnm.getLength()];

		for (int j = 0; j < nnm.getLength(); j++)
		{
			NamedNodeMap n = nnm.item(j).getAttributes();

			int x = new Integer(n.getNamedItem("x").getNodeValue());
			int y = new Integer(n.getNamedItem("y").getNodeValue());

			String ent = n.getNamedItem("entity").getNodeValue();

			if (ent.contains("solid"))
				set.entities[j] = new SoildEntity(x * 8, y * 8);
			if (ent.contains("coin"))
				set.entities[j] = new CoinEntity(x * 8, y * 8);
			if (ent.contains("end"))
				set.entities[j] = new EndEntity(x * 8, y * 8);
		}

		return set;
	}