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

OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998
$29.99
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998 pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 73W0893 73Y0892
$29.99
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 73W0893 73Y0892 pictureIBM 1337765 Lift-Off CorrectionTape - Genuine OEM for IBM Wheelwriter
$9.99
IBM 1337765 Lift-Off CorrectionTape - Genuine OEM for IBM Wheelwriter  pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998
$31.75
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998 pictureOEM Genuine IBM POS Display with POLE PN - 41K6814
$22.49
OEM Genuine IBM POS Display with POLE PN - 41K6814 picture






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