[jdom-interest] Problem with Jdom8 - getChildren() on root do esn't work...

Beleznay, Dave Dave.Beleznay at webct.com
Mon Apr 8 12:45:23 PDT 2002


sorry about the double post.. turns out i was subscribed with a
different address than (evil) outlook is sending. so I'd resubscribed
and resent.. .please ignore this one...

-------
David Beleznay
Software Engineer
WebCT 

> -----Original Message-----
> From: Beleznay, Dave 
> Sent: Monday, April 08, 2002 11:13 AM
> To: Bradley S. Huffman
> Cc: jdom-interest at jdom.org
> Subject: RE: [jdom-interest] Problem with Jdom8 - 
> getChildren() on root
> do esn't work... 
> 
> 
> Did this ever get resolved?  I seem to be having the same problem when
> I'm trying getChildren() on the root element.
> the List children contains no elements after the assignment. 
> 
> I'm trying to insert an element into an ordered xml document. 
> 
> code snippet follows. 
> 
> 
> 
>                 List children = rootElement.getChildren();
>                 rootElement.removeChildren();
>                 ListIterator i = children.listIterator();
>                 
>                 while (i.hasNext()) {
>                     Element ele = (Element) i.next();
>                     String eleName = ele.getName();
>                     if (eleName.equals("role")) {
>                         i.next();    
>                         i.add(roleDesigner);
>                     }
>                 }
>                 rootElement.setChildren(children);                
> 
> -------
> David Beleznay
> Software Engineer
> WebCT 
> 
> > -----Original Message-----
> > From: Bradley S. Huffman [mailto:hip at a.cs.okstate.edu]
> > Sent: Thursday, March 28, 2002 10:33 AM
> > To: Deepali Abhyankar
> > Cc: jdom-interest at jdom.org; hip at a.cs.okstate.edu
> > Subject: Re: [jdom-interest] Problem with Jdom8 - 
> > getChildren() on root
> > do esn't work... 
> > 
> > 
> > Deepali Abhyankar writes:
> > 
> > > Hmm. Quick question - what jar files are you pointing to 
> > when you ran the
> > > application below? Besides the jdom.jar for JDOM8.
> > 
> > Ahhh yes, the nasty details, SDK 1.4, jdom.jar created this 
> > morning from
> > the cvs as of this morning.
> > 
> > I'm lazy so I put everthing in jre\lib\ext and it's contents are:
> > 
> >  Volume in drive C has no label.
> >  Volume Serial Number is D8E4-7769
> > 
> >  Directory of C:\j2sdk1.4.0\jre\lib\ext
> > 
> > 03/28/2002  10:11 AM    <DIR>          .
> > 03/28/2002  10:11 AM    <DIR>          ..
> > 08/31/2001  11:06 AM           320,367 BCEL.jar
> > 08/31/2001  11:06 AM           105,573 bsf.jar
> > 05/18/2001  08:30 PM           187,162 crimson.jar
> > 02/07/2002  12:52 PM             4,391 dnsns.jar
> > 11/27/2000  11:57 AM            29,871 jakarta-regexp-1.2.jar
> > 08/31/2001  11:06 AM            61,975 java_cup.jar
> > 01/10/2002  11:48 AM           184,306 jaxen-full.jar
> > 02/06/2001  09:43 PM            28,404 jaxp.jar
> > 03/28/2002  10:10 AM           126,794 jdom.jar
> > 08/31/2001  11:06 AM            54,603 JLex.jar
> > 03/19/2002  02:31 AM         1,447,679 jswat-20020319.jar
> > 05/21/2001  10:19 AM           117,522 junit.jar
> > 02/07/2002  12:52 PM            53,559 ldapsec.jar
> > 02/07/2002  12:52 PM           664,070 localedata.jar
> > 08/31/2001  11:06 AM             7,779 runtime.jar
> > 01/10/2002  11:48 AM            23,390 saxpath.jar
> > 08/31/2001  11:06 AM            57,679 stylebook-1.0-b3_xalan-2.jar
> > 02/07/2002  12:52 PM           116,788 sunjce_provider.jar
> > 01/24/2002  02:28 PM            29,181 validate.jar
> > 08/31/2001  11:08 AM           872,241 xalan.jar
> > 08/31/2001  11:06 AM           122,396 xalan2jdoc.jar
> > 08/31/2001  11:08 AM            43,096 xalanj1compat.jar
> > 08/31/2001  11:08 AM            23,881 xalansamples.jar
> > 08/31/2001  11:08 AM            22,620 xalanservlet.jar
> > 08/31/2001  11:06 AM         1,808,883 xerces.jar
> > 08/31/2001  11:06 AM           129,139 xml.jar
> > 08/31/2001  11:08 AM           474,327 xsltc.jar
> >               27 File(s)      7,117,676 bytes
> >                2 Dir(s)     939,499,520 bytes free
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/yo
> uraddr at yourhost.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com



More information about the jdom-interest mailing list