hello everyone,
I have a problem.
I have to make a listfield that contains student's names from xml file that stored at h*tp://localhost/xml/student.xml
I think, i have to use HttpConnection to get data from xml and use DocumentBuilder to parse the xml.
But I feel very confuse to implement those.
the example of listfield on screen like this:
Ahmad
Salman
When I click a name (in this case is Salman), so new screen will appear with the detail of the student.
the example of output:
Student Number: 51
Name: Salman
Address: India
Major: Physics
here is the xml file
Code:
<?xml version="1.0"?>
<students>
<student>
<id>50</id>
<name>Ahmad</name>
<address>Pakistan</address>
<major>Management</major>
</student>
<student>
<id>51</id>
<name>Salman</name>
<address>India</address>
<major>Physics</major>
</student>
</students>
does anybody can help me?