Please ... example code due on looping though specific nodes

M

Mr. Arnold

Jon Skeet said:
<snip>

I think you'll find you *will* care if you have a question that *you*
want answering and no-one is willing to help because of the attitude
you've been displaying in this thread and others.

Not to be rude here, but if I want a question answered, then I know how to
go find that answer, if I had to do that.
I know that *I'd*
certainly rather spend time trying to help someone who has a history of
being polite than someone who is often rude and unwilling to
acknowledge mistakes.

What mistakes were those? Now, I may see things in a different light, which
I do see, because I do come from a different background or environment than
most posting in this NG, which is the streets I grew up in and still deal
with at times. I will apply that street mentality at times in a NG. But that
doesn't mean anything is a mistake.
I don't have enough time to answer every
question, so I have to apply some criteria to work out which ones to
spend effort on. Politeness is one of those criteria. Maybe that's just
me, but I strongly suspect it isn't.

I am not trying to be rude here. I don't think I would ask for any help,
because I know how to go find the answer, particularly when it comes to
programming and the MS platform.

The key to anything being talked about in this NG or any NG is this.

Does one know how to find the information for a given problem and apply the
information to produce a viable solution? That's what the Internet is about.
And if you know how to go find that information, you do, and if you don't,
then you don't know how to do it. There are no in betweens.
 
P

Peter Duniho

Not to be rude here,

"Not to be rude"? A little too late for that, don't you think?
but if I want a question answered, then I know how to go find that
answer, if I had to do that.

The same thing could be said of practically EVERY question asked in this
newsgroup. Why should we bother answering *any* question, given that's
the case?
What mistakes were those?

Well, for me the defining moment in your introduction of yourself to this
newsgroup was when you refused to acknowledge the error in claiming that
modifying a loop index from within the loop would in and of itself make
the loop "blow up" (your words).

You've had your share of other missteps, IMHO, but I'll bet that's the one
that sticks in most people's minds.
Now, I may see things in a different light, which I do see, because I do
come from a different background or environment than most posting in
this NG, which is the streets I grew up in and still deal with at times.

Huh? This is about "street cred", or some silly notion like that?

Here's a hint: even if you do live in a rough neighborhood (whatever
that's supposed to mean), that doesn't justify you going around insulting
people.
I will apply that street mentality at times in a NG. But that doesn't
mean anything is a mistake.

I think that the mistakes Jon refers to are factual errors you've made.
Being rude is also a mistake, but I don't think that's the point he was
making.
I am not trying to be rude here. I don't think I would ask for any
help, because I know how to go find the answer, particularly when it
comes to programming and the MS platform.

Again, if everyone should be expected to just "go find the answer" rather
than ask the question here, why should anyone ever post a question here?
The key to anything being talked about in this NG or any NG is this.

Does one know how to find the information for a given problem and apply
the information to produce a viable solution? That's what the Internet
is about. And if you know how to go find that information, you do, and
if you don't, then you don't know how to do it. There are no in betweens.

If "there are no in betweens", then why do we have this newsgroup at all?

Like Jon, I do keep track of the people who can't behave themselves, and I
do avoid answering their questions. But more importantly, even if you do
not expect to ever ask a question here, that does not make it okay for you
to go around abusing people.

I find it unfortunate that in the last few weeks, we've had at least two
off-topic threads by people who basically refuse to act politely, only
because there are no direct consequences to them for not doing so. I find
myself wondering what ever happened to the notion of doing something just
because "it's the right thing to do" (and I'm not talking oatmeal here).

Pete
 
P

Peter Duniho

I've found part of the answer to my question (thanks to several on
this thread) but I am unsure of how to finish. Here is the code I
have now:

[...]

foreach (XmlNode node in list)
{
s += "Title: " + node["EventType"].Attributes["ID"].Value ;
}

You need to implement some sort of recursive processing, where you use the
XmlNode.ChildNodes property to look at the XML nodes within the given node.

It can either be a true recursive method that calls itself and has the
logic in it to handle every single node type you expect to see,
maintaining the necessary state to know what to do with those nodes. Or
you can write special-purpose methods for each node type, calling each as
appropriate from the others as you come across each node.

But the key is that once you have an XML node, you can enumerate all of
the nodes within it by using the ChildNodes property.

Pete
 
G

gator

"Not to be rude"? A little too late for that, don't you think?


The same thing could be said of practically EVERY question asked in this
newsgroup. Why should we bother answering *any* question, given that's
the case?



Well, for me the defining moment in your introduction of yourself to this
newsgroup was when you refused to acknowledge the error in claiming that
modifying a loop index from within the loop would in and of itself make
the loop "blow up" (your words).

You've had your share of other missteps, IMHO, but I'll bet that's the one
that sticks in most people's minds.


Huh? This is about "street cred", or some silly notion like that?

Here's a hint: even if you do live in a rough neighborhood (whatever
that's supposed to mean), that doesn't justify you going around insulting
people.


I think that the mistakes Jon refers to are factual errors you've made.
Being rude is also a mistake, but I don't think that's the point he was
making.


Again, if everyone should be expected to just "go find the answer" rather
than ask the question here, why should anyone ever post a question here?



If "there are no in betweens", then why do we have this newsgroup at all?

Like Jon, I do keep track of the people who can't behave themselves, and I
do avoid answering their questions. But more importantly, even if you do
not expect to ever ask a question here, that does not make it okay for you
to go around abusing people.

I find it unfortunate that in the last few weeks, we've had at least two
off-topic threads by people who basically refuse to act politely, only
because there are no direct consequences to them for not doing so. I find
myself wondering what ever happened to the notion of doing something just
because "it's the right thing to do" (and I'm not talking oatmeal here).

Pete



=======================================================================================================

uh, excuse me folks ... but could we move the psychiatric session to
another thread so I could see if anyone can help me with the OTHER
topic of the thread, "XML Parsing"?

=)

Thanks, much appreciated!

- Steve (the original poster before this turned into the "Arnie seeks
therapy thread").
 
P

Peter Duniho

uh, excuse me folks ... but could we move the psychiatric session to
another thread so I could see if anyone can help me with the OTHER
topic of the thread, "XML Parsing"?

Uh, well...you could always move your question about XML back to the
original thread you posted. It seems to have remained relatively
uncluttered. :)
 
M

Mr. Arnold

If I respected your opinion, I might listen. I don't respect you, period. So
you might as well stop posting to me.
 
M

Mark Rae

Your behavior is or should be a problem for all participants in
this newsgroup.

And you will have to live with criticism from other
that feel embarrassed on behalf of the NG.

Not just this newsgroup - this guy acts in similar vein on several others on
the microsoft server...

Well overdue for the killfile...
 
M

Mr. Arnold

Mark Rae said:
Not just this newsgroup - this guy acts in similar vein on several others
on the microsoft server...

Well overdue for the killfile...

Well you please do it and stay out of my face. That's all I ask of any of
you is to stay out of my face. You'll find that I don't have conversations
with the regulars in any NG. It's best that way.
 
P

Peter Duniho

If I respected your opinion, I might listen. I don't respect you,
period. So you might as well stop posting to me.

It means nothing to me regarding whether you respect my opinion or not.
There are factual statements here that pertain to you. In any case, if my
posts are so useless to you, I really wish you'd just put me in your
killfile and be done with it. If I "might as well stop posting to you",
why do you bother to reply at all?
 
M

Mr. Arnold

Disappear Peter, you mean nothing to me. And the sooner you understand
that, the better things will be. The moment I recognize anyone as being a
serious regular in a NG whether that be top posting for help or posting down
in a thread, it's over for him or her. I will not initiate a post to that
person, as I have no need to do that. I mind my own business, help someone
if I can, and in general, I mind my own business.
 
G

gator

Uh, well...you could always move your question about XML back to the
original thread you posted. It seems to have remained relatively
uncluttered. :)

HAHAHA ... good point.
 
M

Moty Michaely

Uh, well...you could always move your question about XML back to the
original thread you posted. It seems to have remained relatively
uncluttered. :)

Hi Guys,

First I must agree with those who has politness as a criteria for
spending expensive time on reading and sharing their (huge) knowledge
with those who are willing to become professionals.

It's a question of perspective and I my self have "stupid" questions
for professionals that are very smart for my point of view. And I am
glad that I can ask these kind of questions without being afraid to be
labeled as a *stupid*.

Professional should be professional in it's personality as much as in
it's knowledge, of any kind.

Now back to business.
Dear Gator,

I would recommend using the XPathNavigator for advanced navigation.
The method you used is great for your purpose but XPathNavigator can
be used as a base navigation tool for future use.

For nested navigation you can use the same navigation/selection method
in a recursive way, just as Pete suggested.

Feel free, and don't hesitate to ask any other questions.

Cheers and good luck,
Moty
 
J

Jon Skeet [C# MVP]

Not to be rude here, but if I want a question answered, then I know how to
go find that answer, if I had to do that.

You don't think you'd ever, ever have a question which someone in this
newsgroup could answer quickly but which could take you days of
searching otherwise? I know that's certainly not the case for me -
while I mostly answer questions rather than asking them, I value the
newsgroup immensely and know that when I *do* have a question, there
are incredibly smart people ready to help.
What mistakes were those? Now, I may see things in a different light, which
I do see, because I do come from a different background or environment than
most posting in this NG, which is the streets I grew up in and still deal
with at times. I will apply that street mentality at times in a NG. But that
doesn't mean anything is a mistake.

I'm referring to the thread where you claimed a loop would blow up, and
were rude to a lot of people before you acknowledged that in fact it
wouldn't.

I don't believe background is particularly relevant when it comes to
being polite in an online community.
I am not trying to be rude here. I don't think I would ask for any help,
because I know how to go find the answer, particularly when it comes to
programming and the MS platform.

The key to anything being talked about in this NG or any NG is this.

Does one know how to find the information for a given problem and apply the
information to produce a viable solution? That's what the Internet is about.
And if you know how to go find that information, you do, and if you don't,
then you don't know how to do it. There are no in betweens.

Rubbish. If the world were so black and white, why even be on the
newsgroup at all? If everyone should be able to find out everything
without coming to a newsgroup, that presumably means that everyone who
asks a question deserves the rude kind of response you provided here.
That's just nonsense. The newsgroup *is* one source of information, in
my view. Yes, it's nice if people look around for answers before asking
questions, but that's not the same thing as saying that every question
is effectively due to people not knowing how to look for information on
the net.

I do wonder what you view your role on the newsgroup as being, if you
don't think you'll ever want to ask a question and you think that every
question would be better answered by searching.
 
M

Mr. Arnold

Please people, you are all making too much of this. <g> All this for little
old me? I guess this NG is no different than any of the other ones I have
been in since I discovered NG(s) back in 2001.

I am sorry folks. I am who I am when it comes to the Internet and NG(s).
Either don't read my post, read my post or do a <plonk>, because I have not
changed in 7 years, so should get use to it. I don't dance to anyone's tune
on the Internet.

However, since I have been off from work, due to foot surgery for several
weeks, I guess I have been out here too hard as of late doing battle more
than I should be. :)

I got some things I have to do in the am.

good night
 
J

Jon Skeet [C# MVP]

Please people, you are all making too much of this. <g> All this for little
old me? I guess this NG is no different than any of the other ones I have
been in since I discovered NG(s) back in 2001.

You're right: many newsgroups dislike rudeness.
I am sorry folks. I am who I am when it comes to the Internet and NG(s).
Either don't read my post, read my post or do a <plonk>, because
I have not changed in 7 years, so should get use to it. I don't dance to
anyone's tune on the Internet.

The problem is that while regulars can killfile you, that doesn't help
people who come here for the first time, and may well be scared off by
rudeness such as yours.

There's plenty of room for individuals to express themselves in
different ways without being rude. Is there anything we can do to
force you to be polite? Nope. (The Microsoft server could start
filtering you out, but I don't think it's come remotely close to that
stage yet.) Does that mean it's right for you to keep being rude? No.

What I don't understand is *why* you'd want to do this. If you don't
want to help people, don't help them - fine. But *please* don't just
belittle them for no good reason. Fortunately the OP in this case has
stuck around, but I've seen people post once and then never come back
after receiving replies like your first one in this thread.
However, since I have been off from work, due to foot surgery for several
weeks, I guess I have been out here too hard as of late doing battle more
than I should be. :)

Spirited debates, I have no problem with. Just being plain rude
doesn't help anyone.

Jon
 
M

Moty Michaely

Please people, you are all making too much of this. <g> All this for little
old me? I guess this NG is no different than any of the other ones I have
been in since I discovered NG(s) back in 2001.

I am sorry folks. I am who I am when it comes to the Internet and NG(s).
Either don't read my post, read my post or do a <plonk>, because I have not
changed in 7 years, so should get use to it. I don't dance to anyone's tune
on the Internet.

However, since I have been off from work, due to foot surgery for several
weeks, I guess I have been out here too hard as of late doing battle more
than I should be. :)

I got some things I have to do in the am.

good night


Hi,

Please respect this newsgroup (and so many others) and the
participants, as much as you want us to respect you and who you are.
Feel well, and get back to work as soon as possible.

Good night,
Moty
 
J

Jon Skeet [C# MVP]

Please respect this newsgroup (and so many others) and the
participants, as much as you want us to respect you and who you are.

I think his point has been that he doesn't care whether we respect him
or not. That's unfortunate, but it's still not an excuse not to act
respectfully to others, IMO :(

Jon
 
M

Moty Michaely

I think his point has been that he doesn't care whether we respect him
or not. That's unfortunate, but it's still not an excuse not to act
respectfully to others, IMO :(

Jon


I agree.

I think the discussion has gone far away.

We have better things to discuss on and of course to do :)

Great day,
Moty
 
P

Peter Duniho

Disappear Peter, you mean nothing to me.

If I mean nothing to you, why do you continue to reply to my posts?
And the sooner you understand that, the better things will be.

For whom? No skin off my nose one way or the other. So, for you? Why
should I care?
The moment I recognize anyone as being a serious regular in a NG whether
that be top posting for help or posting down in a thread, it's over for
him or her.

What does that even mean? "It's over for him or her". How is "it"
"over"? And why does that apply solely to "a serious regular in a NG"?
I will not initiate a post to that person, as I have no need to do that.

You just initiated a post to me. In fact, you've initiated several. Is
that because you don't correctly recognize me as a "serious regular"?
I mind my own business,

That's not true. You went out of your way to insult someone. That's
hardly minding your own business.
help someone if I can,

That's clearly not true also. You could have helped the guy, but you
didn't.
and in general, I mind my own business.

You did say that previously, in the same sentence. It's still not true.

Pete
 
M

Mr. Arnold

The problem is that while regulars can killfile you, that doesn't help
people who come here for the first time, and may well be scared off by
rudeness such as yours.

Do you really think a killfile means anything and that one couldn't come
around it? :)
So the OP got stepped on a little bit. I hardly step on him, and I have done
worst, believe me.

For the most part, I am minding my own business. The only rudeness you have
seen by me is towards those who choose the be there in the first place, like
the old Moty and Peter, which I am flat out tired of looking at both of
them, because I certainly didn't need or wanted to seek them out.

I am not into debates. I never have and never will be into some kind of a
debate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with large XML file 2

Top