X
[XaToA]
Hello.
from one select to one database i extract one string in XML format.
for example this:
String cadenaXML="<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"+
"<registros>\n
<registro>\n<id>2</id>\n<nombremaquina>nombre1</nombremaquina>\n"+
"<idcurso>56</idcurso>\n<nombrecursocastellano>curso cast
1</nombrecursocastellano>\n"+
"<nombrecursoingles>curso ing 1</nombrecursoingles>\n</registro>\n"+
"<registro>\n<id>22</id>\n<nombremaquina>nombre2</nombremaquina>\n<idcurso>2
23</idcurso>\n"+
"<nombrecursocastellano>curso cast
2</nombrecursocastellano>\n<nombrecursoingles>curso ing
2</nombrecursoingles>\n"+
</registro>\n</registros>";
i want to parse this with jdom (or xerces) and to conver to this:
2 nombre1 56 curso cast 1 curso ing 1
22 nombre2 22 curso cast 2 curso ing 2
Can you help me please?
i am working in this problem during 3 days and i cannot solve it.
I dont work with jdom and i am readin the doc but i dont get to solve this
problem.
Please can you help me?
thanks
from one select to one database i extract one string in XML format.
for example this:
String cadenaXML="<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"+
"<registros>\n
<registro>\n<id>2</id>\n<nombremaquina>nombre1</nombremaquina>\n"+
"<idcurso>56</idcurso>\n<nombrecursocastellano>curso cast
1</nombrecursocastellano>\n"+
"<nombrecursoingles>curso ing 1</nombrecursoingles>\n</registro>\n"+
"<registro>\n<id>22</id>\n<nombremaquina>nombre2</nombremaquina>\n<idcurso>2
23</idcurso>\n"+
"<nombrecursocastellano>curso cast
2</nombrecursocastellano>\n<nombrecursoingles>curso ing
2</nombrecursoingles>\n"+
</registro>\n</registros>";
i want to parse this with jdom (or xerces) and to conver to this:
2 nombre1 56 curso cast 1 curso ing 1
22 nombre2 22 curso cast 2 curso ing 2
Can you help me please?
i am working in this problem during 3 days and i cannot solve it.
I dont work with jdom and i am readin the doc but i dont get to solve this
problem.
Please can you help me?
thanks