Problems with XML in xlets

Hi I've implemented a xlet that places panels in different placesm takes images from files, resizes video stream.... and I want take this arguments (coordinates, path from fles...) from an XML file. I'm a litlle bit confused about this. I don't know how start. What's the best way? SAX, DOM?

This is part of de XML file

<panelTituloPpal>

<panel>

<x> 50 </x>

<y> 35 </y>

<ancho> 610 </ancho>

<alto> 100 </alto>

<color>

<red> 238 </red>

<green> 130 </green>

<blue> 238 </blue>

<transparencia> 255 </transparencia>

</color>

</panel>

<imagen x ='515' y ='15'>

<path>"imagenes/logoUPNA_sinFondo.png" </path>

</imagen>

<HTitulo>

<panel>

<x> 10 </x>

<y> 10 </y>

<ancho> 590 </ancho>

<alto> 80 </alto>

<color>

<red> 0 </red>

<green> 130 </green>

<blue> 238 </blue>

<transparencia> 50 </transparencia>

</color>

</panel>

<titulo>"&nbsp&nbsp&nbspBienvenido al Teletexto de la UPNA" </titulo>

<fuente>

<tipo> Tiresias </tipo>

<opciones> Bold </opciones>

<tamanno> 30 </tamanno>

<color> black</color>

<separacion> 30 </separacion>

<alineacionHorizontal> HORIZONTAL_START_ALIGN</alineacionHorizontal>

<alineacionVertical> VERTICAL_CENTER </alineacionVertical>

</fuente>

</HTitulo>

</panelTituloPpal>

How can my xlet have access to these data? For example, in start() method I have this:

panelTituloPpal =new MiContenedor(50,35,610,100);

panelTituloPpal.setColorBack(new DVBColor(238, 130, 238, 255));

and I want that this parameters are taken from the XML file, not set directly

I need help.Thanks in advance

[2374 byte] By [leireurrizaa] at [2007-10-3 4:52:12]
# 1
Use XPath the get the coordinate values.
dvohra09a at 2007-7-14 22:56:58 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Where can I download javax.xml.xpath package? I'm using j2sdk1.4.2_10 and Eclipse 3.1Thanks
leireurrizaa at 2007-7-14 22:56:58 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
java.xml.xpath is a JDK 5 package. http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html
dvohra09a at 2007-7-14 22:56:58 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...