Package com.ximpleware

Examples of com.ximpleware.VTDNav.toElement()


        byte[] b = str.getBytes("UTF-8");
        VTDGen vg = new VTDGen();
        vg.setDoc(b);
        vg.parse(false);
        VTDNav vn = vg.getNav();
        require(vn.toElement(VTDNav.ROOT));
        String fileId = vn.toString(vn.getAttrVal(AgigaConstants.FILE_ID));
       
        return fileId;
    }
View Full Code Here


            try {
                //main
                if (vn.matchElement(TAG_XML_MAIN)) {

                    db = new com.conf.Db();
                    if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_DB)) {

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
                            db.setClazz(vn.toString(vn.getText()));
                        }
View Full Code Here

                if (vn.matchElement(TAG_XML_MAIN)) {

                    db = new com.conf.Db();
                    if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_DB)) {

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
                            db.setClazz(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            db.setConn(vn.toString(vn.getText()));
View Full Code Here

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
                            db.setClazz(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            db.setConn(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_QUERY)) {
                            if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CREATE)) {
View Full Code Here

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            db.setConn(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_QUERY)) {
                            if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CREATE)) {

                                do {
                                    db.addCreate(vn.toString(vn.getText()));
                                } while (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CREATE));
View Full Code Here

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            db.setConn(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_QUERY)) {
                            if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CREATE)) {

                                do {
                                    db.addCreate(vn.toString(vn.getText()));
                                } while (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CREATE));
                            }
View Full Code Here

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_QUERY)) {
                            if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CREATE)) {

                                do {
                                    db.addCreate(vn.toString(vn.getText()));
                                } while (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CREATE));
                            }
                        }

                    }//if()
View Full Code Here

                        }

                    }//if()

                    stats = new com.conf.Db();
                    vn.toElement(VTDNav.ROOT);
                    vn.matchElement(TAG_XML_MAIN);

                    if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_STATS)) {

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
View Full Code Here

                    stats = new com.conf.Db();
                    vn.toElement(VTDNav.ROOT);
                    vn.matchElement(TAG_XML_MAIN);

                    if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_STATS)) {

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
                            stats.setClazz(vn.toString(vn.getText()));
                        }
View Full Code Here

                    vn.toElement(VTDNav.ROOT);
                    vn.matchElement(TAG_XML_MAIN);

                    if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_STATS)) {

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
                            stats.setClazz(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            stats.setConn(vn.toString(vn.getText()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.