Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
QuestionUser objects limit in XP Pin
atuldeore10-Jul-06 4:26
atuldeore10-Jul-06 4:26 
AnswerRe: User objects limit in XP Pin
S. Senthil Kumar10-Jul-06 6:18
S. Senthil Kumar10-Jul-06 6:18 
QuestionSuppress Paint Event Pin
Andrei Ungureanu10-Jul-06 3:49
Andrei Ungureanu10-Jul-06 3:49 
AnswerRe: Suppress Paint Event Pin
LongRange.Shooter10-Jul-06 4:03
LongRange.Shooter10-Jul-06 4:03 
AnswerRe: Suppress Paint Event Pin
Josh Smith10-Jul-06 4:38
Josh Smith10-Jul-06 4:38 
Questiongetting XML Attribute doesn't work [modified] Pin
Schimaera10-Jul-06 3:34
Schimaera10-Jul-06 3:34 
AnswerRe: getting XML Attribute doesn't work Pin
Andrei Ungureanu10-Jul-06 3:46
Andrei Ungureanu10-Jul-06 3:46 
AnswerRe: getting XML Attribute doesn't work Pin
stancrm10-Jul-06 3:49
stancrm10-Jul-06 3:49 
You can use something like this:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("test.xml");

XmlNode equationsNode = xmlDoc.ChildNodes[0].ChildNodes[0] as XmlNode;
XmlNode valueNode = xmlDoc.ChildNodes[0].ChildNodes[1] as XmlNode;

foreach(XmlNode xmlNode in equationsNode)
{
	XmlAttribute nameAttr = xmlNode.Attributes["name"];
	XmlAttribute calcAttr = xmlNode.Attributes["calc"];
	
	Console.WriteLine(nameAttr.Value + " " + calcAttr.Value);
}

foreach(XmlNode xmlNode in valueNode)
{
	foreach(XmlNode sourceNode in xmlNode.ChildNodes)
	{
		XmlAttribute objAttr = sourceNode.Attributes["obj"];
		XmlAttribute fieldAttr = sourceNode.Attributes["field"];
		
		Console.WriteLine(objAttr.Value + " " + fieldAttr.Value);
	}
}

GeneralRe: getting XML Attribute doesn't work Pin
Schimaera10-Jul-06 4:24
Schimaera10-Jul-06 4:24 
Questionadd control to listBox Pin
TAREQ F ABUZUHRI10-Jul-06 3:14
TAREQ F ABUZUHRI10-Jul-06 3:14 
AnswerRe: add control to listBox Pin
LongRange.Shooter10-Jul-06 4:08
LongRange.Shooter10-Jul-06 4:08 
GeneralRe: add control to listBox Pin
Josh Smith10-Jul-06 4:40
Josh Smith10-Jul-06 4:40 
AnswerRe: add control to listBox Pin
Andrew Lygin10-Jul-06 10:07
Andrew Lygin10-Jul-06 10:07 
Questionms access problem :( help please ... Pin
cmpeng3410-Jul-06 2:38
cmpeng3410-Jul-06 2:38 
AnswerRe: ms access problem :( help please ... Pin
LongRange.Shooter10-Jul-06 4:13
LongRange.Shooter10-Jul-06 4:13 
Questionchange WindowsForm Pin
realmontanakid10-Jul-06 2:25
realmontanakid10-Jul-06 2:25 
AnswerRe: change WindowsForm Pin
stancrm10-Jul-06 2:36
stancrm10-Jul-06 2:36 
GeneralRe: change WindowsForm Pin
Jun Du10-Jul-06 4:36
Jun Du10-Jul-06 4:36 
AnswerRe: change WindowsForm Pin
Andrei Ungureanu10-Jul-06 3:37
Andrei Ungureanu10-Jul-06 3:37 
QuestionListViewItemSorter and Icomparer [modified] Pin
livez10-Jul-06 1:26
livez10-Jul-06 1:26 
AnswerRe: ListViewItemSorter and Icomparer Pin
Robert Rohde10-Jul-06 3:24
Robert Rohde10-Jul-06 3:24 
GeneralRe: ListViewItemSorter and Icomparer [modified] Pin
livez10-Jul-06 3:41
livez10-Jul-06 3:41 
QuestionWord DOC To String Pin
eraserk10-Jul-06 1:19
eraserk10-Jul-06 1:19 
AnswerRe: Word DOC To String Pin
stancrm10-Jul-06 1:24
stancrm10-Jul-06 1:24 
AnswerRe: Word DOC To String Pin
Not Active10-Jul-06 2:19
mentorNot Active10-Jul-06 2:19 

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.