>My XML file has a root element called "fanml" and a container element for each new entry called "news". In other words, <fanml> <news/> <news/> </fanml> >insert my new news elements before my old ones? Element fanml=myDocument.getDocumentElement(); //... Element firstNews=fanml.getFirstChild(); fanml.insertBefore(myNewNews,firstNews); Or //... firstNews=myDocument.getElementsByTagName("news").item(0); firstNews.getParent().insertBefore(myNewNews,firstNews); Or anything equivalent... ______________________________________ Joe Kesselman / IBM ResearchReceived on Thursday, 21 June 2001 10:43:34 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 3 May 2007 00:17:11 GMT