public static CustomStructure parseCustomStructure(File structureFile)
	{
		CustomStructure t = new CustomStructure();
		
		try
		{
			File fXmlFile = structureFile;
			DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
			DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
			Document doc = dBuilder.parse(fXmlFile);
					
			doc.getDocumentElement().normalize();
			
			if (doc.hasChildNodes() && doc.getChildNodes().item(0).hasChildNodes()) 
			{
				NodeList nodeList = doc.getChildNodes().item(0).getChildNodes();
				for (int count = 0; count < nodeList.getLength(); count++) {
					Node node = nodeList.item(count);
					
					LegendaryCardMaker.debug("Processing: " + node.getNodeName());
					
					if (node.getNodeName().equals("structure"))
					{	
						if (node.getAttributes().getNamedItem("name") != null)
						{
							t.name = node.getAttributes().getNamedItem("name").getNodeValue();
						}
						
						if (node.getAttributes().getNamedItem("displayname") != null)
						{
							t.displayName = node.getAttributes().getNamedItem("displayname").getNodeValue();
						}
						
						if (node.getAttributes().getNamedItem("tab") != null)
						{
							t.tab = node.getAttributes().getNamedItem("tab").getNodeValue();
						}
					}
				}
				
			}
			
			return t;
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		
		return null;
	}