Click here to Skip to main content
15,847,427 members
Home / Discussions / C#
   

C#

 
QuestionCollection was modified; Enumeration Operation may not execute Pin
Vijju200616-May-06 7:50
Vijju200616-May-06 7:50 
AnswerRe: Collection was modified; Enumeration Operation may not execute Pin
carlop()16-May-06 7:55
carlop()16-May-06 7:55 
GeneralRe: Collection was modified; Enumeration Operation may not execute Pin
Vijju200616-May-06 8:13
Vijju200616-May-06 8:13 
GeneralRe: Collection was modified; Enumeration Operation may not execute Pin
carlop()16-May-06 22:15
carlop()16-May-06 22:15 
QuestionA beginnering question Pin
mehrdadc4816-May-06 7:13
mehrdadc4816-May-06 7:13 
AnswerRe: A beginnering question Pin
Vikram A Punathambekar16-May-06 7:26
Vikram A Punathambekar16-May-06 7:26 
AnswerRe: A beginnering question Pin
coolvinx16-May-06 12:23
coolvinx16-May-06 12:23 
QuestionXML Remove Node Problem Pin
Phoen2516-May-06 7:07
Phoen2516-May-06 7: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 7:40
Phoen2516-May-06 7:40 
QuestionRight click on flash player Pin
mehrdadc4816-May-06 6:58
mehrdadc4816-May-06 6:58 
Questionbuild vs rebuild Pin
mehrdadc4816-May-06 6:56
mehrdadc4816-May-06 6:56 
AnswerRe: build vs rebuild Pin
Rob Philpott16-May-06 6:59
Rob Philpott16-May-06 6:59 
AnswerRe: build vs rebuild Pin
Guffa16-May-06 8:09
Guffa16-May-06 8:09 
GeneralRe: build vs rebuild Pin
Robert Rohde16-May-06 9:17
Robert Rohde16-May-06 9:17 
QuestionDraw in web Pin
papa198016-May-06 6:39
papa198016-May-06 6:39 
AnswerRe: Draw in web Pin
MoustafaS16-May-06 9:02
MoustafaS16-May-06 9:02 
AnswerRe: Draw in web Pin
Jakob Farian Krarup16-May-06 9:20
Jakob Farian Krarup16-May-06 9:20 
GeneralRe: Draw in web Pin
papa198016-May-06 20:12
papa198016-May-06 20:12 
QuestionApply a codec on WAVE stream Pin
gbonnet16-May-06 6:23
gbonnet16-May-06 6:23 
AnswerRe: Apply a codec on WAVE stream Pin
martin_hughes16-May-06 13:11
martin_hughes16-May-06 13:11 
GeneralRe: Apply a codec on WAVE stream Pin
gbonnet16-May-06 23:21
gbonnet16-May-06 23:21 
GeneralRe: Apply a codec on WAVE stream Pin
gbonnet17-May-06 1:02
gbonnet17-May-06 1:02 
QuestionString Manipulation Pin
martin_hughes16-May-06 6:15
martin_hughes16-May-06 6:15 
AnswerRe: String Manipulation Pin
Paul Brower16-May-06 6:28
Paul Brower16-May-06 6:28 
GeneralRe: String Manipulation Pin
Josh Smith16-May-06 7:10
Josh Smith16-May-06 7: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.