Hi all!

I'm parsing an XML document:
------//-----------
<table>
  <pupil>
    <name></name>
    <surname></surname>
  </pupil>
...
</table>
----------//---------

I would like to display Pupils' data, but ordering them
alphabetically by the surname.

I'm trying it by using:
-----------//----------------
NodeList PupilList = root.getElementsByTagName("pupil");
int NumberPupils = PupilList.getLength();               
for (int i=0; i<NumberPupils; i++) {
   Node PupilAlone = PupilList.item(i);
   traversePupil(PupilAlone);
   ...
----------//--------------

But they are ordered in the same way they are in the XML
document.

Any suggestion? Thank you very much.
_______________________________________________________________________
Gana un antivirus abriendo tu cuenta de correo gratis en HispaVista.
http://www.hispavista.com/altacorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to