Click here to Skip to main content
15,894,182 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting xsd to csv using xslt Pin
tunde17-May-04 13:02
tunde17-May-04 13:02 
GeneralBitmaps Pin
Saleh Alshadheli17-May-04 6:30
Saleh Alshadheli17-May-04 6:30 
GeneralRe: Bitmaps Pin
Dave Kreskowiak17-May-04 6:40
mveDave Kreskowiak17-May-04 6:40 
QuestionWhy this default Directory? Pin
Adam °Wimsatt17-May-04 5:38
Adam °Wimsatt17-May-04 5:38 
AnswerRe: Why this default Directory? Pin
Heath Stewart17-May-04 5:57
protectorHeath Stewart17-May-04 5:57 
GeneralRe: Why this default Directory? Pin
Adam °Wimsatt17-May-04 6:04
Adam °Wimsatt17-May-04 6:04 
GeneralRe: Why this default Directory? Pin
Heath Stewart17-May-04 6:19
protectorHeath Stewart17-May-04 6:19 
Generalusing excel in c# problem Pin
Russell Jones17-May-04 5:37
Russell Jones17-May-04 5:37 
GeneralRe: using excel in c# problem Pin
Heath Stewart17-May-04 5:54
protectorHeath Stewart17-May-04 5:54 
GeneralC# design question Pin
pankajdaga17-May-04 5:01
pankajdaga17-May-04 5:01 
GeneralRe: C# design question Pin
Heath Stewart17-May-04 5:10
protectorHeath Stewart17-May-04 5:10 
GeneralRe: C# design question Pin
pankajdaga17-May-04 7:32
pankajdaga17-May-04 7:32 
GeneralManaging 3 applications at the same time Pin
Diego F.17-May-04 4:55
Diego F.17-May-04 4:55 
GeneralRe: Managing 3 applications at the same time Pin
Heath Stewart17-May-04 5:06
protectorHeath Stewart17-May-04 5:06 
GeneralRe: Managing 3 applications at the same time Pin
Diego F.17-May-04 5:33
Diego F.17-May-04 5:33 
GeneralRe: Managing 3 applications at the same time Pin
Heath Stewart17-May-04 5:38
protectorHeath Stewart17-May-04 5:38 
GeneralCombobox Pin
bertcox17-May-04 4:54
bertcox17-May-04 4:54 
GeneralRe: Combobox Pin
Heath Stewart17-May-04 5:04
protectorHeath Stewart17-May-04 5:04 
GeneralEdit a file Pin
Appelz17-May-04 3:17
Appelz17-May-04 3:17 
GeneralRe: Edit a file Pin
Dave Kreskowiak17-May-04 3:41
mveDave Kreskowiak17-May-04 3:41 
GeneralRe: Edit a file Pin
Heath Stewart17-May-04 3:47
protectorHeath Stewart17-May-04 3:47 
GeneralImage Transparent In C# Pin
Anonymous17-May-04 2:44
Anonymous17-May-04 2:44 
GeneralRe: Image Transparent In C# Pin
Heath Stewart17-May-04 3:49
protectorHeath Stewart17-May-04 3:49 
GeneralGetting the Attibute on an element XML Pin
Melanius17-May-04 1:27
Melanius17-May-04 1:27 
Hi i am trying to get the value of an attribute displayed, but i can't seem to find the best way to get to it. If the element contains no attributes it returns -1?
XmlDocument document = new XmlDocument();<br />
			document.Load("..\\..\\commands.xml");<br />
<br />
			XmlNodeReader reader = new XmlNodeReader(document);<br />
<br />
			this.Show();<br />
<br />
			while (reader.Read())<br />
			{<br />
				switch (reader.NodeType)<br />
				{<br />
					case XmlNodeType.Element:<br />
						int attributes = reader.AttributeCount;<br />
						cmdOutput.Text += "<" + reader.Name + reader.GetAttribute(attributes) + ">";<br />
						break;<br />
					case XmlNodeType.Text:<br />
						cmdOutput.Text += "\t" + reader.Value + "\r\n";<br />
						break;<br />
					case XmlNodeType.EndElement:<br />
						cmdOutput.Text += "</" + reader.Name + ">\r\n";<br />
						break;<br />
				}<br />
			}

GeneralRe: Getting the Attibute on an element XML Pin
Heath Stewart17-May-04 3:54
protectorHeath Stewart17-May-04 3:54 

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.