	@Test
	public void parse() throws Exception {

		String uidump = "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><hierarchy rotation=\"0\"><node index=\"0\" text=\"\" resource-id=\"\" class=\"android.widget.FrameLayout\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,0][1024,552]\"><node index=\"0\" text=\"\" resource-id=\"com.android.keyguard:id/keyguard_host_view\" class=\"android.widget.FrameLayout\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,0][1024,552]\"><node index=\"0\" text=\"\" resource-id=\"com.android.keyguard:id/multi_pane_challenge\" class=\"android.view.View\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,0][1024,552]\"><node index=\"0\" text=\"\" resource-id=\"com.android.keyguard:id/app_widget_container\" class=\"android.view.View\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,0][1024,552]\"><node index=\"0\" text=\"\" resource-id=\"com.android.keyguard:id/keyguard_status_view\" class=\"android.widget.FrameLayout\" package=\"com.android.keyguard\" content-desc=\"Status widget.\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"true\" password=\"false\" selected=\"false\" bounds=\"[67,74][497,504]\"><node index=\"0\" text=\"\" resource-id=\"com.android.keyguard:id/keyguard_status_view_face_palm\" class=\"android.widget.GridLayout\" package=\"com.android.keyguard\" content-desc=\"Status\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[75,82][489,496]\"><node index=\"0\" text=\"\" resource-id=\"\" class=\"android.widget.LinearLayout\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"true\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[75,82][489,285]\"><node index=\"0\" text=\"\" resource-id=\"\" class=\"android.widget.LinearLayout\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[75,263][489,285]\"><node index=\"0\" text=\"Mon, May 26\" resource-id=\"com.android.keyguard:id/date_view\" class=\"android.widget.TextView\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[240,263][323,285]\" /></node><node index=\"1\" text=\"2:40\" resource-id=\"com.android.keyguard:id/clock_view\" class=\"android.widget.TextView\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[154,82][410,270]\" /></node></node></node></node><node index=\"1\" text=\"\" resource-id=\"com.android.keyguard:id/keyguard_security_container\" class=\"android.widget.FrameLayout\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[533,88][953,488]\"><node index=\"0\" text=\"\" resource-id=\"com.android.keyguard:id/view_flipper\" class=\"android.widget.ViewFlipper\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[533,88][953,488]\"><node index=\"0\" text=\"\" resource-id=\"com.android.keyguard:id/keyguard_selector_view\" class=\"android.widget.LinearLayout\" package=\"com.android.keyguard\" content-desc=\"Slide unlock.\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[545,100][941,476]\"><node index=\"0\" text=\"\" resource-id=\"\" class=\"android.widget.FrameLayout\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[545,100][941,476]\"><node index=\"0\" text=\"\" resource-id=\"com.android.keyguard:id/glow_pad_view\" class=\"android.view.View\" package=\"com.android.keyguard\" content-desc=\"Slide area.\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[545,100][941,476]\" /><node index=\"1\" text=\"Charging, 42%\" resource-id=\"com.android.keyguard:id/keyguard_message_area\" class=\"android.widget.TextView\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"true\" bounds=\"[545,100][941,122]\" /><node NAF=\"true\" index=\"2\" text=\"\" resource-id=\"com.android.keyguard:id/keyguard_selector_fade_container\" class=\"android.widget.LinearLayout\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[545,428][941,476]\" /><node index=\"3\" text=\"\" resource-id=\"com.android.keyguard:id/keyguard_selector_view_frame\" class=\"android.view.View\" package=\"com.android.keyguard\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[561,100][925,476]\" /></node></node></node></node></node></node></node></hierarchy>";
		DocumentBuilderFactory domFactory =	DocumentBuilderFactory.newInstance();
		domFactory.setNamespaceAware(true);
		DocumentBuilder builder = domFactory.newDocumentBuilder();
		Document doc = builder.parse(new InputSource(new ByteArrayInputStream(uidump.getBytes("utf-8"))));
		XPath xpath = XPathFactory.newInstance().newXPath();
		XPathExpression expr = xpath.compile("//node[@clickable='true']");

		Object result = expr.evaluate(doc, XPathConstants.NODESET);
		NodeList nodes = (NodeList) result;
		for (int j = 0; j < nodes.getLength(); j++) {
		}

		String bounds = nodes.item(0).getAttributes().getNamedItem("bounds").getNodeValue();
		bounds = bounds.substring(1);
		bounds = bounds.substring(0, bounds.indexOf("]"));
		String x = bounds.split(",")[0];
		String y = bounds.split(",")[1];

		System.err.println("x=" + x + " , y=" + y);

		Node node = new UiDumpXmlParser().parse(uidump);
		new Printer(System.out).print(node);
	}