public NodeList findElementsAndTypes() throws XPathExpressionException {
        return (NodeList) xPath.compile("/xs:schema/xs:element")
                .evaluate(document, XPathConstants.NODESET);
    }
@Test
    public void testFindElementsAndTypes() throws Exception {
        Document document = XmlHelper.buildNamespaceAwareDocument(
                ResourceUtils.getResourceAsFile("xmls/3_elements.xml"));
        XPath xPath = XmlHelper.buildXPath(new CamelSpringNamespace());
        domFinder = new DomFinder(document, xPath);

        NodeList elements = domFinder.findElementsAndTypes();

        assertEquals(3, elements.getLength());
    }