Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
Questionwpf help Pin
lankaudaranga7-Aug-08 17:53
lankaudaranga7-Aug-08 17:53 
AnswerRe: wpf help Pin
Abhijit Jana7-Aug-08 19:42
professionalAbhijit Jana7-Aug-08 19:42 
AnswerRe: wpf help Pin
John_Adams7-Aug-08 20:12
John_Adams7-Aug-08 20:12 
QuestionCould I index controls? Pin
blackhattrick7-Aug-08 15:31
blackhattrick7-Aug-08 15:31 
AnswerRe: Could I index controls? Pin
teejayem7-Aug-08 16:23
teejayem7-Aug-08 16:23 
AnswerRe: Could I index controls? Pin
User 66587-Aug-08 21:27
User 66587-Aug-08 21:27 
AnswerRe: Could I index controls? Pin
blackhattrick8-Aug-08 15:20
blackhattrick8-Aug-08 15:20 
QuestionSeraching in XML by LINQ ? Pin
Mohammad Dayyan7-Aug-08 15:27
Mohammad Dayyan7-Aug-08 15:27 
Hi there.
I have a XML file like this :
<NODE15>
<BOOKMARK16 NAME="Mozilla - Home" HREF="http://en-us.www.mozilla.com/en-US/" />
<BOOKMARK18 NAME="mozillaZine Forums" HREF="http://forums.mozillazine.org/index.php" />
<BOOKMARK19 NAME="Mozilla Support" />
<BOOKMARK20 HREF="http://www.download.com/" />
<BOOKMARK21 HREF="http://firefoxplanet.ir/" />
<BOOKMARK22 HREF="http://developer.mozilla.org/en/docs/Extensions" />
<BOOKMARK23 HREF="http://forums.mozillazine.org/viewforum.php?f19" />
<BOOKMARK24 HREF="https://addons.mozilla.org/en-US/firefox/addon/5229" />
</NODE15>


I want to search in it by LINQ.
I used this code

X_Element = XElement.Load(FileName);
var searchNodes = from nodes in X_Element.Descendants()
where Regex.IsMatch(nodes.Attribute("HREF").Value, "Mozilla", RegexOptions.IgnoreCase)
 select nodes;


But there is no data in searchNodes
What's wrong with it ?

Thanks in advance
AnswerRe: Seraching in XML by LINQ ? Pin
teejayem7-Aug-08 16:24
teejayem7-Aug-08 16:24 
Generalcustom control dropdownlist autopostback event not firing Options Pin
leon_yoo7-Aug-08 14:38
leon_yoo7-Aug-08 14:38 
QuestionWhat's the difference between the two? Pin
Silvyster7-Aug-08 14:37
Silvyster7-Aug-08 14:37 
AnswerRe: What's the difference between the two? Pin
Gideon Engelberth7-Aug-08 15:22
Gideon Engelberth7-Aug-08 15:22 
QuestionQueue using c# Pin
Angelinna7-Aug-08 14:26
Angelinna7-Aug-08 14:26 
AnswerRe: Queue using c# Pin
The Only Nock7-Aug-08 14:41
The Only Nock7-Aug-08 14:41 
GeneralRe: Queue using c# Pin
Angelinna7-Aug-08 22:21
Angelinna7-Aug-08 22:21 
AnswerRe: Queue using c# Pin
Alan Balkany8-Aug-08 7:59
Alan Balkany8-Aug-08 7:59 
Questiondatagridview currentrow Pin
nelsonpaixao7-Aug-08 12:29
nelsonpaixao7-Aug-08 12:29 
QuestionReading/Writing Cookies Pin
dbrenth7-Aug-08 10:48
dbrenth7-Aug-08 10:48 
QuestionInserting html into mssql error Pin
phil_mob7-Aug-08 10:40
phil_mob7-Aug-08 10:40 
AnswerRe: Inserting html into mssql error Pin
Colin Angus Mackay7-Aug-08 13:06
Colin Angus Mackay7-Aug-08 13:06 
AnswerRe: Inserting html into mssql error Pin
Guffa7-Aug-08 13:38
Guffa7-Aug-08 13:38 
QuestionWhen binding to a DataGridView ComboBox I always get this error message!? Pin
tkrn7-Aug-08 10:27
tkrn7-Aug-08 10:27 
AnswerRe: When binding to a DataGridView ComboBox I always get this error message!? Pin
SomeGuyThatIsMe7-Aug-08 10:39
SomeGuyThatIsMe7-Aug-08 10:39 
AnswerRe: When binding to a DataGridView ComboBox I always get this error message!? Pin
tkrn8-Aug-08 7:32
tkrn8-Aug-08 7:32 
QuestionAPDU Pin
Stathread7-Aug-08 9:03
Stathread7-Aug-08 9:03 

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.