Package com.upgradingdave.jaxp.stax

Examples of com.upgradingdave.jaxp.stax.StaxXmlHelper


    public void findValuesStax(){

        File xmlFile = new File(XmlHelperTest.class.getClassLoader().getResource("xml/fredericksburg-weather.xml").getFile());
        assertNotNull(xmlFile);

        XmlHelper xmlHelper = new StaxXmlHelper(xmlFile);
        List<String> values = xmlHelper.findValues("title");

        assertTrue(values.size() > 0);
        assertEquals("Yahoo! Weather - Fredericksburg, VA", values.get(0));

    }
View Full Code Here

TOP

Related Classes of com.upgradingdave.jaxp.stax.StaxXmlHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.