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>"   Bienvenido 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

