Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
QuestionCollection was modified; Enumeration Operation may not execute Pin
Vijju200616-May-06 6:50
Vijju200616-May-06 6:50 
AnswerRe: Collection was modified; Enumeration Operation may not execute Pin
carlop()16-May-06 6:55
carlop()16-May-06 6:55 
GeneralRe: Collection was modified; Enumeration Operation may not execute Pin
Vijju200616-May-06 7:13
Vijju200616-May-06 7:13 
GeneralRe: Collection was modified; Enumeration Operation may not execute Pin
carlop()16-May-06 21:15
carlop()16-May-06 21:15 
QuestionA beginnering question Pin
mehrdadc4816-May-06 6:13
mehrdadc4816-May-06 6:13 
AnswerRe: A beginnering question Pin
Vikram A Punathambekar16-May-06 6:26
Vikram A Punathambekar16-May-06 6:26 
AnswerRe: A beginnering question Pin
coolvinx16-May-06 11:23
coolvinx16-May-06 11:23 
QuestionXML Remove Node Problem Pin
Phoen2516-May-06 6:07
Phoen2516-May-06 6:07 
Hi. I have a rss, and I want to remove the items that its pubDate are lower than a DateTime. The problem is that I can't use the function to compare date in XPath because the pubDate use the RFC-822 format and the function in XML/XSD/XSLT, use ISO-8601 format. So I have to use an external function to remove the nodes like this:

public static XmlDocument XMLFilter(XmlDocument doc, DateTime aDate)
XPathNavigator nav = doc.CreateNavigator();
DateTime nodeDate;

foreach (XPathNavigator node in nav.Select("rss/channel/item/pubDate")) {
nodeDate = DateTime.Parse(node.Value).ToLocalTime();

if (nodeDate.CompareTo(aDate.ToLocalTime()) < 0) {
node.DeleteSelf();
}
}
return doc;
}

But If I return the doc, the element are not removed. I want to remove that node (where I compare the condition node.DeleteSelf())

Thanks a lot !!!!!
AnswerRe: XML Remove Node Problem Pin
Phoen2516-May-06 6:40
Phoen2516-May-06 6:40 
QuestionRight click on flash player Pin
mehrdadc4816-May-06 5:58
mehrdadc4816-May-06 5:58 
Questionbuild vs rebuild Pin
mehrdadc4816-May-06 5:56
mehrdadc4816-May-06 5:56 
AnswerRe: build vs rebuild Pin
Rob Philpott16-May-06 5:59
Rob Philpott16-May-06 5:59 
AnswerRe: build vs rebuild Pin
Guffa16-May-06 7:09
Guffa16-May-06 7:09 
GeneralRe: build vs rebuild Pin
Robert Rohde16-May-06 8:17
Robert Rohde16-May-06 8:17 
QuestionDraw in web Pin
papa198016-May-06 5:39
papa198016-May-06 5:39 
AnswerRe: Draw in web Pin
MoustafaS16-May-06 8:02
MoustafaS16-May-06 8:02 
AnswerRe: Draw in web Pin
Jakob Farian Krarup16-May-06 8:20
Jakob Farian Krarup16-May-06 8:20 
GeneralRe: Draw in web Pin
papa198016-May-06 19:12
papa198016-May-06 19:12 
QuestionApply a codec on WAVE stream Pin
gbonnet16-May-06 5:23
gbonnet16-May-06 5:23 
AnswerRe: Apply a codec on WAVE stream Pin
martin_hughes16-May-06 12:11
martin_hughes16-May-06 12:11 
GeneralRe: Apply a codec on WAVE stream Pin
gbonnet16-May-06 22:21
gbonnet16-May-06 22:21 
GeneralRe: Apply a codec on WAVE stream Pin
gbonnet17-May-06 0:02
gbonnet17-May-06 0:02 
QuestionString Manipulation Pin
martin_hughes16-May-06 5:15
martin_hughes16-May-06 5:15 
AnswerRe: String Manipulation Pin
Paul Brower16-May-06 5:28
Paul Brower16-May-06 5:28 
GeneralRe: String Manipulation Pin
Josh Smith16-May-06 6:10
Josh Smith16-May-06 6:10 

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.