<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=168265515-28022002><FONT face=Arial size=2>Sorry for my
ignorance</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial size=2>I finally do a
function like this</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial
size=2>******************************</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial size=2>private static List
getElementsByTagName(String name, Element elem) {<BR> Vector v = new
Vector(elem.getChildren(name));<BR> for (Iterator
it=elem.getChildren().iterator(); it.hasNext(); )
{<BR> v.addAll(getElementsByTagName(name,
(Element)it.next()));<BR> }<BR> return v;<BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial
size=2>********************************</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial size=2>and in my code I do
this call :</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial
size=2>***************************</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial size=2>
Element root = doc.getRootElement();</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial size=2>
List myIMG = getElementsByTagName("IMG", root)</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial
size=2>********************************</FONT></SPAN></DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=168265515-28022002><FONT face=Arial size=2>Now I have another
problem : how to insert an Element before another because I would like to insert
a <a href> tag before each <img> tag (I found all the <img>
tags with my method 'getElementsByTagName')</FONT></SPAN></DIV></BODY></HTML>