   | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | |  | SV: [jdom-interest] Creating multiple Elements using JDOm | SV: [jdom-interest] Creating multiple Elements using JDOm 2004-01-08 - By Per Norrman
Back You just create and add the elements as needed: Element d = new Element("Details"); d.addContent(new Element("name")); d.addContent(new Element("name")); d.addContent(new Element("name")); /pmn -- --Ursprungligt meddelande-- -- Fr?n: jdom-interest-admin@(protected) [mailto:jdom-interest-admin@(protected)] F?r Moipone Mocoancoeng Skickat: den 8 januari 2004 13:37 Till: jdom-interest@(protected) ?mne: [jdom-interest] Creating multiple Elements using JDOm
Hi All How do you create an element which has the same multiple children, for example like below Details Element having more that one Name subElements. Best Regards Moipone
__ __
Do you Yahoo!? Yahoo! Hotjobs: Enter <http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/mail_footer_email/e vt=21482/*http://hotjobs.sweepstakes.yahoo.com/signingbonus> the "Signing Bonus" Sweepstakes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>Meddelande</TITLE>
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=750170516-08012004><FONT face=Arial color=#0000ff size=2>You just create and add the elements as needed:</FONT></SPAN></DIV> <DIV><SPAN class=750170516-08012004><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=750170516-08012004> <FONT face=Arial color=#0000ff size=2>Element d = new Element("Details");</FONT></SPAN></DIV> <DIV><SPAN class=750170516-08012004><FONT face=Arial color=#0000ff size=2> d.addContent(new Element("name"));</FONT></SPAN></DIV> <DIV><FONT face=Tahoma size=2> <DIV><SPAN class=750170516-08012004><FONT face=Arial color=#0000ff size=2> d.addContent(new Element("name"));</FONT></SPAN></DIV> <DIV><SPAN class=750170516-08012004><FONT face=Arial color=#0000ff size=2> d.addContent(new Element("name"));</FONT></SPAN></DIV> <DIV><SPAN class=750170516-08012004><FONT face=Arial color=#0000ff></FONT></SPAN> </DIV> <DIV><SPAN class=750170516-08012004><FONT face=Arial color=#0000ff>/pmn</FONT></SPAN></DIV> <DIV><SPAN class=750170516-08012004></SPAN> </DIV>-- --Ursprungligt meddelande-- --<BR><B>Fr?n:</B> jdom-interest-admin@(protected) [mailto:jdom-interest-admin@(protected)] <B>F?r </B>Moipone Mocoancoeng<BR><B>Skickat:</B> den 8 januari 2004 13:37<BR><B>Till:</B> jdom-interest@(protected)<BR><B>?mne:</B> [jdom-interest] Creating multiple Elements using JDOm<BR><BR></FONT></DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">Hi All How do you create an element which has the same multiple children, for example like below Details Element having more that one Name subElements. <DETAILS><NAME /><NAME /><NAME /></DETAILS>Best Regards Moipone <P> <HR SIZE=1> Do you Yahoo!?<BR>Yahoo! Hotjobs: <A href="http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/mail_footer_email /evt=21482/*http://hotjobs.sweepstakes.yahoo.com/signingbonus">Enter the "Signing Bonus" Sweepstakes</A></BLOCKQUOTE></BODY></HTML>
Earn $52 per hosting referral at Lunarpages.
|
|
 |