Package org.dom4j

Examples of org.dom4j.Element.elementIterator()


     
      boolean mailCheck = true;
     
      for (Iterator itMail = itemUsers.elementIterator("emails");itMail.hasNext(); ){
        Element itemElement = (Element) itMail.next();
        for (Iterator mailIterator = itemElement.elementIterator("mail");mailIterator.hasNext(); ){
          Element mailElement = (Element) mailIterator.next();
          email = mailElement.getText();
          if (!Emailmanagement.getInstance().checkUserEMail(mailElement.getText())) mailCheck=false;
       
      }       
View Full Code Here


       
        Long user_id = Usermanagement.getInstance().addUser(us);
       
        for (Iterator itOrga = itemUsers.elementIterator("organisations");itOrga.hasNext(); ){
          Element itemElement = (Element) itOrga.next();
          for (Iterator orgIterator = itemElement.elementIterator("organisation_id");orgIterator.hasNext(); ){
            Element orgElement = (Element) orgIterator.next();
            Long organisation_id = Long.valueOf(orgElement.getText()).longValue();
            Organisationmanagement.getInstance().addUserToOrganisation(us.getUser_id(), organisation_id, null, "");
         
        }   
View Full Code Here

    Document document = reader.read(filePath
        + ImportInitvalues.nameOfErrorFile);

    Element root = document.getRootElement();

    for (Iterator it = root.elementIterator("row"); it.hasNext();) {

      Element row = (Element) it.next();

      Long errorvalues_id = null;
      Long fieldvalues_id = null;
View Full Code Here

      Long errorvalues_id = null;
      Long fieldvalues_id = null;
      Long errortype_id = null;

      for (Iterator itSub = row.elementIterator("field"); itSub.hasNext();) {

        Element field = (Element) itSub.next();

        String name = field.attributeValue("name");
        String text = field.getText();
View Full Code Here

    Document document = reader.read(filePath
        + ImportInitvalues.nameOfCountriesFile);

    Element root = document.getRootElement();

    for (Iterator it = root.elementIterator("country"); it.hasNext();) {

      Element item = (Element) it.next();
      String country = item.attributeValue("name");

      Statemanagement.getInstance().addState(country);
View Full Code Here

    Document document = reader.read(filePath
        + ImportInitvalues.nameOfTimeZoneFile);

    Element root = document.getRootElement();

    for (Iterator it = root.elementIterator("timezone"); it.hasNext();) {

      Element item = (Element) it.next();
      String timeZoneName = item.attributeValue("name");
      String timeZoneLabel = item.attributeValue("label");
      String iCal = item.attributeValue("iCal");
View Full Code Here

    Document document = reader.read(filePath
        + ImportInitvalues.nameOfTimeZoneFile);

    Element root = document.getRootElement();

    for (Iterator it = root.elementIterator("timezone"); it.hasNext();) {

      Element item = (Element) it.next();
      String timeZoneName = item.attributeValue("name");
      String timeZoneLabel = item.attributeValue("label");
      Integer orderId = Integer.valueOf(item.attributeValue("orderId"));
View Full Code Here

    Document document = reader.read(filePath
        + ImportInitvalues.nameOfLanguageFile);

    Element root = document.getRootElement();

    for (Iterator<Element> it = root.elementIterator("lang"); it.hasNext();) {

      Element item = it.next();
      String country = item.getText();
      Integer id = Integer.valueOf(item.attribute("id").getValue()).intValue();
     
View Full Code Here

      SAXReader reader = new SAXReader();
      Document document = reader.read(filePath + langName + ".xml");

      Element root = document.getRootElement();

      for (Iterator it = root.elementIterator("string"); it.hasNext();) {
        Element item = (Element) it.next();
        //log.error(item.getName());

        Long id = Long.valueOf(item.attributeValue("id")).longValue();
        String name = item.attributeValue("name");
View Full Code Here

        Long id = Long.valueOf(item.attributeValue("id")).longValue();
        String name = item.attributeValue("name");
        String value = "";

        for (Iterator t2 = item.elementIterator("value"); t2.hasNext();) {
          Element val = (Element) t2.next();
          value = val.getText();
        }

        //log.error("result: "+langFieldIdIsInited+" "+id+" "+name+" "+value);
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.