Click here to Skip to main content
15,902,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Mycroft Holmes14-Dec-08 19:26
professionalMycroft Holmes14-Dec-08 19:26 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
LightIceStorm15-Dec-08 9:57
LightIceStorm15-Dec-08 9:57 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Guffa15-Dec-08 12:03
Guffa15-Dec-08 12:03 
QuestionLoading Multiple Images to a Picture Box Pin
User 543536414-Dec-08 14:19
User 543536414-Dec-08 14:19 
AnswerRe: Loading Multiple Images to a Picture Box Pin
Christian Graus14-Dec-08 17:17
protectorChristian Graus14-Dec-08 17:17 
GeneralRe: Loading Multiple Images to a Picture Box Pin
User 543536414-Dec-08 17:30
User 543536414-Dec-08 17:30 
GeneralRe: Loading Multiple Images to a Picture Box Pin
Lev Danielyan14-Dec-08 19:16
Lev Danielyan14-Dec-08 19:16 
QuestionC# Xml struggles Pin
lszanto14-Dec-08 12:56
lszanto14-Dec-08 12:56 
I recently started looking into C# as I needed a solid language that can use windows COM for iTunes interactions. With C# 2008 I thought that XML would be a breeze, this is not the case. I am loading an xml file from the net and I simply want to retrieve one field(<tx>) from the document but I cannot find a simple way of doing this.

A sample xml document:
<start>
−
<sg>
<cs>dc583ca591</cs>
<id>532800</id>
<ar>Switchfoot</ar>
<tt>The Shadow Proves the Sunshine</tt>
<al>Nothing Is Sound</al>
−
<tx>
Sunshine,[br] free limited API lyricsfly.com temporary weekly access [br] won't she be my mother?[br]
Sunshine, come and help me sing[br]
My heart is darker than these oceans[br]
My heart is frozen underneath[br]
[br]

We are crooked souls trying to stay up straight[br]
Dry eyes in the pouring rain[br]
Where the shadow proves the sunshine[br]
The shadow proves the sunshine[br]
[br]

Two scared little run aways[br]
Hold fast till the break of daylight[br]
Where the shadow proves the sunshine[br]
The shadow proves the sunshine[br]
[br]

O Lord, why did you forsak... *** Your access it restricted to 30% of content. Please get permanent user ID key for 100% at lyricsfly.com/api/ *** [br] Lyrics delivered by lyricsfly.com [br]
</tx>
</sg>
</start>


The code that I have written so far:
//Set url.
String URLString = "http://lyricsfly.com/api/api.php?i=de5abbf415fd84ca6-temporary.API.access&a=" + track.Artist + "&t=" + track.Name;

//Make a text reader.
XmlTextReader reader = new XmlTextReader(URLString);


Thanks in advance, Luke.
AnswerRe: C# Xml struggles Pin
lszanto14-Dec-08 12:58
lszanto14-Dec-08 12:58 
AnswerRe: C# Xml struggles Pin
Colin Angus Mackay14-Dec-08 14:20
Colin Angus Mackay14-Dec-08 14:20 
GeneralRe: C# Xml struggles Pin
lszanto14-Dec-08 14:33
lszanto14-Dec-08 14:33 
QuestionForm turning into component Pin
kod3brkr14-Dec-08 12:41
kod3brkr14-Dec-08 12:41 
AnswerRe: Form turning into component Pin
Colin Angus Mackay14-Dec-08 14:07
Colin Angus Mackay14-Dec-08 14:07 
GeneralRe: Form turning into component Pin
kod3brkr14-Dec-08 14:19
kod3brkr14-Dec-08 14:19 
GeneralRe: Form turning into component Pin
Colin Angus Mackay14-Dec-08 14:27
Colin Angus Mackay14-Dec-08 14:27 
GeneralRe: Form turning into component Pin
kod3brkr14-Dec-08 16:07
kod3brkr14-Dec-08 16:07 
GeneralRe: Form turning into component Pin
Colin Angus Mackay14-Dec-08 21:37
Colin Angus Mackay14-Dec-08 21:37 
GeneralRe: Form turning into component Pin
Luc Pattyn15-Dec-08 0:33
sitebuilderLuc Pattyn15-Dec-08 0:33 
QuestionCan I add new fields to an existing type using reflection( FieldBuilder) ? Pin
Charith Jayasundara14-Dec-08 11:04
Charith Jayasundara14-Dec-08 11:04 
AnswerRe: Can I add new fields to an existing type using reflection( FieldBuilder) ? Pin
Colin Angus Mackay14-Dec-08 12:17
Colin Angus Mackay14-Dec-08 12:17 
GeneralRe: Can I add new fields to an existing type using reflection( FieldBuilder) ? Pin
Lev Danielyan14-Dec-08 19:37
Lev Danielyan14-Dec-08 19:37 
GeneralRe: Can I add new fields to an existing type using reflection( FieldBuilder) ? Pin
Charith Jayasundara14-Dec-08 22:45
Charith Jayasundara14-Dec-08 22:45 
GeneralRe: Can I add new fields to an existing type using reflection( FieldBuilder) ? Pin
Lev Danielyan14-Dec-08 23:52
Lev Danielyan14-Dec-08 23:52 
QuestionDataGridViewComboBoxColumn, how the bound dataset into the datagridview. Pin
leeoze14-Dec-08 9:58
leeoze14-Dec-08 9:58 
AnswerRe: DataGridViewComboBoxColumn, how the bound dataset into the datagridview. Pin
basambora14-Dec-08 10:50
basambora14-Dec-08 10:50 

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.