@Test
public void testXPath() throws XMLStreamException, XPathException {

	StringReader json = new StringReader("{\"alice\":{\"@edgar\":\"david\",\"bob\":\"charlie\"}}");
	XMLEventReader reader = new JsonXMLInputFactory().createXMLEventReader(json);
	Document document = DOMEventConsumer.consume(reader);
	
	XPath xpath = XPathFactory.newInstance().newXPath();
	Assert.assertEquals("charlie", xpath.evaluate("//alice[@edgar='david']/bob/text()", document));
}