BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-03-2011, 03:53 AM   #1 (permalink)
New Member
 
Join Date: Jun 2011
Model: 9530
PIN: N/A
Carrier: analyst
Posts: 8
Post Thanks: 2
Thanked 0 Times in 0 Posts
Unhappy [HELP] ListField from XML

Please Login to Remove!

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?

Last edited by slametsugih : 06-03-2011 at 03:55 AM. Reason: typo
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: [HELP] ListField from XML
Thread Thread Starter Forum Replies Last Post
XML app Sven_Bio Developer Forum 2 02-24-2009 09:07 AM
ListField scrolling swarsa Developer Forum 5 12-30-2008 07:53 AM
Problem viewing XML attachments ChuNu BES Admin Corner 4 12-11-2007 04:11 PM
new screen -> listField Problem hibbert Developer Forum 7 12-05-2007 02:35 AM
Groupwise BES4.01 GWXMLData::Read(1) UNKNOWN XML NODENAME! bibi BES Admin Corner 4 05-07-2006 09:13 PM

1 x No 45 Black Inkjet Cartridge Non-OEM Alternative For HP - 51645A
$16.4
1 x No 45 Black Inkjet Cartridge Non-OEM Alternative For HP - 51645A picture2 x No 45 Black Inkjet Cartridges Non-OEM Alternative For HP - 51645A
$27.35
2 x No 45 Black Inkjet Cartridges Non-OEM Alternative For HP - 51645A picture24 x Inkjet Cartridges ( 6 Sets ) Non-OEM With Epson T1291,T1292,T1293,T1294
$30.07
24 x Inkjet Cartridges ( 6 Sets ) Non-OEM With Epson T1291,T1292,T1293,T1294 picture4 x Inkjet Cartridges (High Cap) Non-OEM With Epson T1291,T1292,T1293,T1294
$6.41
4 x Inkjet Cartridges (High Cap) Non-OEM With Epson T1291,T1292,T1293,T1294 pictureOEM Genuine - Apple iMac 24" A1225 LCD Screen Panel 2007-2008 LM240WU2 (SL)(B1)
$79.99
OEM Genuine - Apple iMac 24






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.