Read a XML document in COBOL



Hey,

I'm trying to read an XML document (see at the end of the page) in
COBOL (I'm using PerCobol). First I tried to read it doing this:

perform until einde = 1
display "|||"lijn"|||"
UNSTRING lijn DELIMITED BY '>' INTO
root

END-UNSTRING
MOVE root(2:2) TO rootTemp
UNSTRING root DELIMITED BY '<' INTO
vuller,element

END-UNSTRING

But thats a lot of work and its hard, now I heard that you can do it a
lot easier??? But how? I didn't find any informatie. So if you can help
me reading this document I thank you!!!

Gtz

Olivier



<?xml version="1.0" encoding="UTF-8"?>
<studentenlijst>
<student>
<!--student bevat steeds 1 studentnummer, 1 naam, 1 voornaam, 1 email,
1 studiejaar, 1 paswoord en mogelijk 1 projecten tag en wel in die
volgorde-->
<studentnummer>20060001</studentnummer>
<naam>Janssens</naam>
<voornaam>Pieter</voornaam>
<email>Pieter.Janssens@xxxxxxxxx</email>
<studiejaar>1</studiejaar>
<paswoord>abcdefg</paswoord>
<!-- tag projecten komt voor enkel en alleen als de student een
geindividualiseerd studietraject volgt-->
<projecten>
<!-- id komt overeen met het projectid uit de tabel projecten-->
<project id="1"/>
<project id="10"/>
</projecten>
</student>
<student>
<studentnummer>20060002</studentnummer>
<naam>Janssens</naam>
<voornaam>An</voornaam>
<email>An.Janssens@xxxxxxxxx</email>
<studiejaar>1</studiejaar>
<paswoord>xyzuvw</paswoord>
</student>
</studentenlijst>

.