Package net.hasor.core

Examples of net.hasor.core.XmlNode


        InputStream inStream = ResourcesUtils.getResourceAsStream("net/test/simple/core/_11_xml/xml-data.xml");
        InputStreamSettings settings = new InputStreamSettings(inStream);
        settings.loadSettings();//装载配置文件
        //
        //
        XmlNode xmlNoe = settings.getXmlNode("demoProject.menus");
        for (XmlNode sub : xmlNoe.getChildren("menu")) {
            String menuCode = sub.getAttribute("code");
            String menuName = sub.getAttribute("name");
            String menuURL = sub.getAttribute("url");
            Hasor.logInfo("%s[%s] to %s.", menuName, menuCode, menuURL);
        }
View Full Code Here

TOP

Related Classes of net.hasor.core.XmlNode

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.