Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have the following array:
C#
items = new DisplayButton[10, 6];
items[0, 0] = time0; items[0, 1] = delay0; items[0, 2] = direction0; items[0, 3] = spoor0; items[0, 4] = type0; items[0, 5] = warning0;
items[1, 0] = time1; items[1, 1] = delay1; items[1, 2] = direction1; items[1, 3] = spoor1; items[1, 4] = type1; items[1, 5] = warning1;
items[2, 0] = time2; items[2, 1] = delay2; items[2, 2] = direction2; items[2, 3] = spoor2; items[2, 4] = type2; items[2, 5] = warning2;
items[3, 0] = time3; items[3, 1] = delay3; items[3, 2] = direction3; items[3, 3] = spoor3; items[3, 4] = type3; items[3, 5] = warning3;
items[4, 0] = time4; items[4, 1] = delay4; items[4, 2] = direction4; items[4, 3] = spoor4; items[4, 4] = type4; items[4, 5] = warning4;
items[5, 0] = time5; items[5, 1] = delay5; items[5, 2] = direction5; items[5, 3] = spoor5; items[5, 4] = type5; items[5, 5] = warning5;
items[6, 0] = time6; items[6, 1] = delay6; items[6, 2] = direction6; items[6, 3] = spoor6; items[6, 4] = type6; items[6, 5] = warning6;
items[7, 0] = time7; items[7, 1] = delay7; items[7, 2] = direction7; items[7, 3] = spoor7; items[7, 4] = type7; items[7, 5] = warning7;
items[8, 0] = time8; items[8, 1] = delay8; items[8, 2] = direction8; items[8, 3] = spoor8; items[8, 4] = type8; items[8, 5] = warning8;
items[9, 0] = time9; items[9, 1] = delay9; items[9, 2] = direction9; items[9, 3] = spoor9; items[9, 4] = type9; items[9, 5] = warning9;


And I want to populate it with information from the following XML file:
http://jecom.nl/ns-api-avt.xml[^]

I only need certain items (ie <eindbestemming> from the xml file should get into directioni and VertrekSpoor = spoori) How can I do this in the easiest way?
Posted
Updated 11-Aug-14 23:32pm
v2

1 solution

if you really know what you want, you can read the xml as text and parse it.

Else you must use a xml parser.
Consider trying out this one. Looks like it can suit your needs.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900