Package org.apache.lenya.xml

Examples of org.apache.lenya.xml.DOMUtil.addElement()


         Document iml = du.create("<?xml version=\"1.0\"?><identity id=\"" +  username + "\"></identity>");
         du.setAttributeValue(iml, "/identity/password/@type", "md5");
         du.setElementValue(iml, "/identity/password", encryptedPassword);
         du.setElementValue(iml, "/identity/comment", comment);
         for (int i = 0; i < groupnames.size(); i++) {
             du.addElement(iml, "/identity/groups/group", (String) groupnames.elementAt(i));
         }

         //new org.apache.lenya.xml.DOMWriter(System.out).printWithoutFormatting(iml);
         return iml;
     }
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.