Package name.pehl.totoe.xml.client

Examples of name.pehl.totoe.xml.client.Document


    }


    public void testSelectNode()
    {
        Document document = parse();
        Node functions = document.selectNode("//dns:functions");
        assertFunctionsNode(functions);

        Element root = document.getRoot();
        functions = root.selectNode("dns:functions");
        assertFunctionsNode(functions);
    }
View Full Code Here


    }


    public void testSelectDescriptionText()
    {
        Document document = parse();
        Node description = document.selectNode("//dns:description/text()");
        assertDescriptionText(description);
    }
View Full Code Here


    public void testSelectValues()
    {
        // There's only one unit attribute without a namespace!
        Document document = parse();
        String[] units = document.selectValues("//@unit");
        assertNotNull(units);
        assertEquals(1, units.length);
        assertUnitValue(units[0]);
    }
View Full Code Here

    }


    public void testSelectValue()
    {
        Document document = parse();
        String unit = document.selectValue("//bttf:power/@unit");
        assertUnitValue(unit);
    }
View Full Code Here

TOP

Related Classes of name.pehl.totoe.xml.client.Document

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.