Código XML :
<?xml version="1.0" encoding="utf-8"?> <UNIDADES banner='imagenes/peli.swf'> <UNIDAD label='Principal' imagen='imagenes/presentacion.png'index="1"/> <UNIDAD label='1.- AWT- SWING' num='1' index="0"> <TEMA label='Bases de la Programación en Java' imagen='imagenes/awtswing/entrega1.png' index='1' urltexto='texto/awtswing/Entrega1.swf'> </TEMA> <TEMA label='Introducción AWT-SWING ' index='1' imagen='imagenes/awtswing/entrega2.png' urltexto='texto/awtswing/Entrega2.swf'> </TEMA> <TEMA label='Estructura AWT-SWING' index='1' imagen='imagenes/awtswing/entrega3.png' urltexto='texto/awtswing/Entrega3.swf'> </TEMA> <TEMA label='Contenedores AWT' index='1' imagen='imagenes/awtswing/entrega4.png' urltexto='texto/awtswing/Entrega4.swf' urlcodigo="codigofuente/awtswing/contenedores_awt.rar" urlvideo="videos/awtswing/entrega4/entrega4.html"> </TEMA> <TEMA label='Contenedores SWING' index='1' imagen='imagenes/awtswing/entrega5.png' urltexto='texto/awtswing/Entrega5.swf' urlcodigo="codigofuente/awtswing/contenedores_swing.rar" urlvideo="videos/awtswing/entrega5/entrega5.html"> </TEMA> <TEMA label='Componentes AWT' index='1' imagen='imagenes/awtswing/entrega6.png' urltexto='texto/awtswing/Entrega6.swf' urlcodigo="codigofuente/awtswing/componentes_awt.rar" urlvideo="videos/awtswing/entrega6/entrega6.html"> </TEMA> <TEMA label='Componentes SWING' index='1' imagen='imagenes/awtswing/entrega7.png' urltexto='texto/awtswing/Entrega7.swf' urlcodigo="codigofuente/awtswing/componentes_swing.rar" urlvideo="videos/awtswing/entrega7/entrega7.html"> </TEMA> <TEMA label='Eventos AWT' index='1' imagen='imagenes/awtswing/entrega8.png' urltexto='texto/awtswing/Entrega8.swf' urlcodigo="codigofuente/awtswing/eventos_awt.rar" urlvideo="videos/awtswing/entrega8/entrega8.html"> </TEMA> <TEMA label='Layout Manager' index='1' imagen='imagenes/awtswing/entrega9.png' urltexto='texto/awtswing/Entrega9.swf' urlcodigo="codigofuente/awtswing/layout_manager.rar" urlvideo="videos/awtswing/entrega9/entrega9.html"> </TEMA> <TEMA label='Caso de Estudio : NETBEANS' index='1' imagen='imagenes/awtswing/entrega10.png' urltexto='texto/awtswing/Entrega10.swf'> </TEMA> <TEMA label='Como iniciar con NETBEANS' index='1' imagen='imagenes/awtswing/entrega11.png' urltexto='texto/awtswing/Entrega11.swf' urlvideo="videos/awtswing/entrega11/entrega11.html"> </TEMA> <TEMA label='Agregar Componentes' index='1' imagen='imagenes/awtswing/entrega12.png' urltexto='texto/awtswing/Entrega12.swf' urlvideo="videos/awtswing/entrega12/entrega12.html"> </TEMA> <TEMA label='Uso del Panel de Propiedades ' index='1' imagen='imagenes/awtswing/entrega13.png' urltexto='texto/awtswing/Entrega13.swf' urlvideo="videos/awtswing/entrega13/entrega13.html"> </TEMA> <TEMA label='Adicionar Eventos con NETBEANS' index='1' imagen='imagenes/awtswing/entrega14.png' urltexto='texto/awtswing/Entrega14.swf' urlvideo="videos/awtswing/entrega14/entrega14.html"> </TEMA> <TEMA label='Aplicaciones con NETBEANS 1' index='1' imagen='imagenes/awtswing/entrega15.png' urltexto='texto/awtswing/Entrega15.swf' urlcodigo="codigofuente/awtswing/entrega15.rar" urlvideo="videos/awtswing/entrega15/entrega15.html"> </TEMA> <TEMA label='Aplicaciones con NETBEANS 2' index='1' imagen='imagenes/awtswing/entrega16.png' urltexto='texto/awtswing/Entrega16.swf' urlcodigo="codigofuente/awtswing/entrega16.rar" urlvideo="videos/awtswing/entrega16/entrega16.html"> </TEMA> <TEMA label='Aplicaciones con NETBEANS 3' index='1' imagen='imagenes/awtswing/entrega17.png' urltexto='texto/awtswing/Entrega17.swf' urlcodigo="codigofuente/awtswing/entrega17.rar" urlvideo="videos/awtswing/entrega17/entrega17.html"> </TEMA> <TEMA label='Aplicaciones con NETBEANS 4' index='1' imagen='imagenes/awtswing/entrega18.png' urltexto='texto/awtswing/Entrega18.swf' urlcodigo="codigofuente/awtswing/entrega18.rar" urlvideo="videos/awtswing/entrega18/entrega18.html"> </TEMA> <TEMA label='Aplicaciones con NETBEANS 5' index='1' imagen='imagenes/awtswing/entrega19.png' urltexto='texto/awtswing/Entrega19.swf' urlcodigo="codigofuente/awtswing/entrega19.rar" urlvideo="videos/awtswing/entrega19/entrega19.html"> </TEMA> <TEMA label='Aplicaciones con NETBEANS 6' index='1' imagen='imagenes/awtswing/entrega20.png' urltexto='texto/awtswing/Entrega20.swf' urlcodigo="codigofuente/awtswing/entrega20.rar" urlvideo="videos/awtswing/entrega20/entrega20.html"> </TEMA> <LABORATORIO label='Laboratorio 1 -AWT' index="0"> <EJERCICIO label='Ejercicio 1' index='1' imagen='imagenes/lab1/pantalla.png' urlvideo='videos/lab1/pantalla/pantalla.html' urlcodigo='codigofuente/Laboratorio1/Pantalla.java' /> <EJERCICIO label='Ejercicio 2' index='1' imagen='imagenes/lab1/choice.png' urlvideo='videos/lab1/choice/choice.html' urlcodigo="codigofuente/Laboratorio1/BotonChoice.java" /> <EJERCICIO label='Ejercicio 3' index='1' imagen='imagenes/lab1/texto.png' urlvideo='videos/lab1/texto/texto.html' urlcodigo="codigofuente/Laboratorio1/Texto.java" /> </LABORATORIO> <LABORATORIO label='Laboratorio 2 -AWT' index="0"> <EJERCICIO label='Ejercicio 1' index="1" imagen="imagenes/lab2/checkbox.png" urlvideo="videos/lab2/checkbox/checkbox.html" urlcodigo="codigofuente/Laboratorio2/Botoncheckbox.java" /> <EJERCICIO label='Ejercicio 2' index="1" imagen="imagenes/lab2/botonradio.png" urlvideo="videos/lab2/radiobutton/radiobutton.html" urlcodigo="codigofuente/Laboratorio2/Botonradio.java" /> <EJERCICIO label='Ejercicio 3' index="1" imagen="imagenes/lab2/etiquetas.png" urlvideo="videos/lab2/etiquetas/etiquetas.html" urlcodigo="codigofuente/Laboratorio2/Etiquetas.java" /> </LABORATORIO> <LABORATORIO label='Laboratorio 3 -Manejo de Layouts' index="0"> <EJERCICIO label='Ejercicio 1' index="1" imagen="imagenes/lab3/flowlay.png" urlvideo="videos/lab3/flowlayout/flowlayout.html" urlcodigo="codigofuente/Laboratorio3/Flowlay.java" /> <EJERCICIO label='Ejercicio 2' index="1" imagen="imagenes/lab3/borderlay.png" urlvideo="videos/lab3/borderlayout/borderlayout.html" urlcodigo="codigofuente/Laboratorio3/Borderlay.java" /> <EJERCICIO label='Ejercicio 3' index="1" imagen="imagenes/lab3/gridlay.png" urlvideo="videos/lab3/gridlayout/gridlayout.html" urlcodigo="codigofuente/Laboratorio3/Gridlay.java" /> </LABORATORIO> <LABORATORIO label='Laboratorio 4 -Manejo de Eventos' index="0"> <EJERCICIO label='Ejercicio 1' index="1" imagen="imagenes/lab4/evento1.png" urlvideo="videos/lab4/eventos1/eventos1.html" urlcodigo="codigofuente/Laboratorio4/Pantalla2.java" /> <EJERCICIO label='Ejercicio 2' index="1" imagen="imagenes/lab4/evento2.png" urlvideo="videos/lab4/evento2/evento2.html" urlcodigo="codigofuente/Laboratorio4/Botonchoice.java" /> </LABORATORIO> <LABORATORIO label='Laboratorio 5 -Ejercicios de Eventos' index="0"> <EJERCICIO label='Ejercicio 1' index="1" urlvideo="videos/lab5/eventos1/eventos1.html" imagen="imagenes/lab5/eventos1.png" urlcodigo="codigofuente/Laboratorio5/Eventos1.java" /> <EJERCICIO label='Ejercicio 2' index="1" urlvideo="videos/lab5/evento2/evento2.html" imagen="imagenes/lab5/eventos2.png" urlcodigo="codigofuente/Laboratorio5/Evento2.java" /> </LABORATORIO> <LABORATORIO label='Laboratorio 6 -Aplicaciones Swing' index="0"> <EJERCICIO label='Ejercicio 1' index="1" imagen="imagenes/lab6/tabbedpane.png" urlvideo="videos/lab6/aplicacionswing/aplicacionswing.html" urlcodigo="codigofuente/Laboratorio6/PruebaTabbedPane.java" /> </LABORATORIO> <LABORATORIO label='Laboratorio 7 -Ejercicios en NETBEANS' index="0"> <EJERCICIO label='Ejercicio 1' index="1" imagen="imagenes/lab7/awt.swf" urlvideo="videos/lab7/lab7awt/lab7awt.html" urlcodigo="codigofuente/Laboratorio7/Laboratorioawt.rar" /> <EJERCICIO label='Ejercicio 2' index="1" imagen="imagenes/lab7/swing.swf" urlvideo="videos/lab7/lab7swing/lab7swing.html" urlcodigo="codigofuente/Laboratorio7/Laboratorioswing.rar"/> </LABORATORIO> </UNIDAD> <UNIDAD label='2.- HTML' num='3' index="0"> <TEMA label='Introducción al HTML' index='1' imagen='imagenes/html/entrega1.png' urltexto='texto/html/Entrega1.swf'> </TEMA> <TEMA label='Estructura de una Pagina' index='1' imagen='imagenes/html/entrega2.png' urltexto='texto/html/Entrega2.swf' urlcodigo="codigofuente/html/entrega2.rar" urlvideo="videos/html/entrega2/entrega2.html"> </TEMA> <TEMA label='Texto 1' index='1' imagen='imagenes/html/entrega3.png' urltexto='texto/html/Entrega3.swf' urlcodigo="codigofuente/html/entrega3.rar" urlvideo="videos/html/entrega3/entrega3.html"> </TEMA> <TEMA label='Texto 2' index='1' imagen='imagenes/html/entrega4.png' urltexto='texto/html/Entrega4.swf' urlcodigo="codigofuente/html/entrega4.rar" urlvideo="videos/html/entrega4/entrega4.html"> </TEMA> <TEMA label='Hiperenlaces' index='1' imagen='imagenes/html/entrega5.png' urltexto='texto/html/Entrega5.swf' urlcodigo="codigofuente/html/entrega5.rar" urlvideo="videos/html/entrega5/entrega5.html"> </TEMA> <TEMA label='Imagenes' index='1' imagen='imagenes/html/entrega6.png' urltexto='texto/html/Entrega6.swf' urlcodigo="codigofuente/html/entrega6.rar" urlvideo="videos/html/entrega6/entrega6.html"> </TEMA> <TEMA label='Tablas 1' index='1' imagen='imagenes/html/entrega7.png' urltexto='texto/html/Entrega7.swf' urlcodigo="codigofuente/html/entrega7.rar" urlvideo="videos/html/entrega7/entrega7.html"> </TEMA> <TEMA label='Tablas 2' index='1' imagen='imagenes/html/entrega8.png' urltexto='texto/html/Entrega8.swf' urlcodigo="codigofuente/html/entrega8.rar" urlvideo="videos/html/entrega8/entrega8.html"> </TEMA> <TEMA label='Formularios 1' index='1' imagen='imagenes/html/entrega9.png' urltexto='texto/html/Entrega9.swf' urlcodigo="codigofuente/html/entrega9.rar" urlvideo="videos/html/entrega9/entrega9.html"> </TEMA> <TEMA label='Formularios 2' index='1' imagen='imagenes/html/entrega10.png' urltexto='texto/html/Entrega10.swf' urlcodigo="codigofuente/html/entrega10.rar" urlvideo="videos/html/entrega10/entrega10.html"> </TEMA> <TEMA label='Aplicación Practica' index='1' imagen='imagenes/html/entrega11.png' urlcodigo="codigofuente/html/entrega11.rar" urltexto='texto/html/Entrega11.swf'> </TEMA> </UNIDAD> <UNIDAD label='3.- .NET' num='4' index="0"> <TEMA label='Introducción a .NET' index='1' imagen='imagenes/net/entrega1.png' urltexto='texto/net/Entrega1.swf'> </TEMA> <TEMA label='Visual Studio .NET' index='1' imagen='imagenes/net/entrega2.png' urltexto='texto/net/Entrega2.swf' urlvideo="videos/net/entrega2/entrega2.html"> </TEMA> <TEMA label='Manejo de Componentes Basicos' index='1' imagen='imagenes/net/entrega3.png' urltexto='texto/net/Entrega3.swf' urlcodigo="codigofuente/net/entrega3.rar" urlvideo="videos/net/entrega3/entrega3.html"> </TEMA> <TEMA label='Eventos' index='1' imagen='imagenes/net/entrega4.png' urltexto='texto/net/Entrega4.swf' urlcodigo="codigofuente/net/entrega4.rar" urlvideo="videos/net/entrega4/entrega4.html"> </TEMA> <TEMA label='Manejo de Variables, Constantes y Operadores' index='1' imagen='imagenes/net/entrega5.png' urltexto='texto/net/Entrega5.swf'> </TEMA> <TEMA label='Ejemplo practico de Variables,Constantes y Operadores' index='1' imagen='imagenes/net/entrega6.png' urltexto='texto/net/Entrega6.swf' urlcodigo="codigofuente/net/entrega6.rar" urlvideo="videos/net/entrega6/entrega6.html"> </TEMA> <TEMA label='Aplicaciones de estructuras de control' index='1' imagen='imagenes/net/entrega7.png' urltexto='texto/net/Entrega7.swf' urlcodigo="codigofuente/net/entrega7.rar" urlvideo="videos/net/entrega7/entrega7.html"> </TEMA> <TEMA label='Arrays' index='1' imagen='imagenes/net/entrega8.png' urltexto='texto/net/Entrega8.swf' urlcodigo="codigofuente/net/entrega8.rar" urlvideo="videos/net/entrega8/entrega8.html"> </TEMA> <TEMA label='Aplicaciones 1' index='1' imagen='imagenes/net/entrega9.png' urltexto='texto/net/Entrega9.swf' urlcodigo="codigofuente/net/entrega9.rar" urlvideo="videos/net/entrega9/entrega9.html"> </TEMA> <TEMA label='Aplicaciones 2' index='1' imagen='imagenes/net/entrega10.png' urltexto='texto/net/Entrega10.swf' urlcodigo="codigofuente/net/entrega10.rar" urlvideo="videos/net/entrega10/entrega10.html"> </TEMA> </UNIDAD> </UNIDADES>
y solo quiero tener un resultado que sea un xml que solo contengaa las etiquetas que tienen el atributo urlvideo
y renorbrar sus etiquetas por ej si es <TEMA o <EJRCICIO que tenga el atributo url video que sea <LISTA y sus demas atributos
Código XML :
<nuevoxml> <LISTA demas atributos solo de los que tengan urlvideo ></LISTA> <LISTA ></LISTA> <LISTA ></LISTA> </nuevoxml>
no se si esto es posible?
ayuda please
