Click here to Skip to main content
16,011,626 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multiple message filters Pin
Nick Parker22-Mar-04 16:02
protectorNick Parker22-Mar-04 16:02 
GeneralRe: Multiple message filters Pin
bisquic22-Mar-04 16:16
bisquic22-Mar-04 16:16 
GeneralRe: Multiple message filters Pin
Heath Stewart23-Mar-04 4:21
protectorHeath Stewart23-Mar-04 4:21 
GeneralRe: Multiple message filters Pin
bisquic28-Mar-04 19:07
bisquic28-Mar-04 19:07 
GeneralRe: Multiple message filters Pin
Heath Stewart29-Mar-04 3:06
protectorHeath Stewart29-Mar-04 3:06 
GeneralRe: Multiple message filters Pin
bisquic29-Mar-04 3:14
bisquic29-Mar-04 3:14 
GeneralDatagrid to text (values only) Pin
jazzle22-Mar-04 10:42
jazzle22-Mar-04 10:42 
GeneralRe: Datagrid to text (values only) Pin
Nick Parker22-Mar-04 18:02
protectorNick Parker22-Mar-04 18:02 
With the below XML, I wrote this quick method to return a string value as you have requested.

<?xml version="1.0" standalone="yes"?>
<pairs>
  <pair>
    <x>3</x>
    <y>10</y>
  </pair>
  <pair>
    <x>4</x>
    <y>17</y>
  </pair>
</pairs>


private string GetInput()
{
	XmlDocument doc = new XmlDocument();
	StringBuilder sb = new StringBuilder();
	XmlNode buffer = null;
	doc.Load("../../data.xml");
	XmlNodeList nodes = doc.SelectNodes("//pairs/pair");
	if(nodes != null)
	{
		foreach(XmlNode node in nodes)
		{
			buffer = node.SelectSingleNode("x");
			if(buffer != null)
				sb.Append(buffer.InnerXml + " ");
			buffer = node.SelectSingleNode("y");
			if(buffer != null)
				sb.Append(buffer.InnerXml + " ");
		}
	}
	return(sb.ToString());
}


- Nick Parker
My Blog | My Articles

GeneralRe: Datagrid to text (values only) Pin
jazzle22-Mar-04 21:37
jazzle22-Mar-04 21:37 
GeneralRe: Datagrid to text (values only) Pin
Heath Stewart23-Mar-04 4:24
protectorHeath Stewart23-Mar-04 4:24 
GeneralConverting strings to DateTime structs Pin
profoundwhispers22-Mar-04 10:38
profoundwhispers22-Mar-04 10:38 
GeneralRe: Converting strings to DateTime structs Pin
Edbert P22-Mar-04 12:19
Edbert P22-Mar-04 12:19 
GeneralRe: Converting strings to DateTime structs Pin
profoundwhispers22-Mar-04 12:39
profoundwhispers22-Mar-04 12:39 
GeneralRe: Converting strings to DateTime structs Pin
Edbert P22-Mar-04 13:18
Edbert P22-Mar-04 13:18 
GeneralRe: Converting strings to DateTime structs Pin
Bryan White31-Mar-04 9:59
Bryan White31-Mar-04 9:59 
GeneralEvents in Datagrid Pin
Anonymous22-Mar-04 10:30
Anonymous22-Mar-04 10:30 
GeneralRe: Events in Datagrid Pin
Ruchi Gupta22-Mar-04 11:55
Ruchi Gupta22-Mar-04 11:55 
GeneralRe: Events in Datagrid Pin
Anonymous23-Mar-04 11:15
Anonymous23-Mar-04 11:15 
GeneralSocket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot22-Mar-04 10:25
goodpilot22-Mar-04 10:25 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Corinna John22-Mar-04 19:48
Corinna John22-Mar-04 19:48 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Heath Stewart23-Mar-04 3:18
protectorHeath Stewart23-Mar-04 3:18 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot23-Mar-04 4:42
goodpilot23-Mar-04 4:42 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Heath Stewart23-Mar-04 5:20
protectorHeath Stewart23-Mar-04 5:20 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot23-Mar-04 5:28
goodpilot23-Mar-04 5:28 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
goodpilot24-Mar-04 3:56
goodpilot24-Mar-04 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.