473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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

I am quite new to XML and posted a request for example code yesterday.
Unfortunately, I did not do a very good job in explaining what I was
looking for. Here is an example of a small piece of the file:

<Scoreboard>
<Events>
<Event ID="001212" Name="EventName1" />
<Event ID="001213" Name="EventName2" />
<Event ID="001214" Name="EventName3" />
<Event ID="001215" Name="EventName4" />
</Events>
<EventTypes>
<EventType ID="01" SingleGame="true" Name="EventName1" />
<EventType ID="02" SingleGame="true" Name="EventName2" />
<EventType ID="03" SingleGame="true" Name="EventName3" />
<EventType ID="04" SingleGame="true" Name="EventName4" />
<EventType ID="05" SingleGame="true" Name="EventName5" />
<EventType ID="06" SingleGame="true" Name="EventName6" />
<EventType ID="07" SingleGame="true" Name="EventName7" />
</EventTypes>
<Teams>
<Team ID="11" City="City1" Name="Name1" City="City1"
Nickname="nickname1" Conference="Conference1">
<Player ID="91" />
<Player ID="190" />
<Player ID="77" />
<Player ID="133" />
<Player ID="144" />
<Player ID="195" />
<Player ID="220" />
<Player ID="231" />
<Player ID="214" />
<Team ID="13" City="City2" Name="Name2" City="City2"
Nickname="nickname2" Conference="Conference1">
<Player ID="91" />
<Player ID="190" />
<Player ID="77" />
<Player ID="133" />
<Player ID="144" />
<Player ID="195" />
<Player ID="220" />
<Player ID="231" />
<Player ID="214" />
</Team>
</Teams>
<Match ID="999" StatusType="6" IsChallengeEnabled="false"
VenueID="NBB" SchedDate="2006-07-30" SchedTime="13:00"
ElapsedTime="02:01" Winner="H" Attendance="" Final="Y">
<ChairUmpires>
<ChairUmpire Num="1" Name="" />
<ChairUmpire Num="2" Name="" />
</ChairUmpires>
<Teams>
<Team ID="1" Type="H" ChallengesMade="5" ChallengesWon="3">
<Player ID="162" Coach="N" />
<Player ID="92" Coach="N" />
<Player ID="127" Coach="N" />
<Player ID="183" Coach="N" />
<Player ID="58" Coach="Y" />
<Stats FSPts="77" FSPtsWon="53" SSPts="21" SSPtsWon="11"
FSAces="2" SSAces="2" DF="2" TeamBrkPts="16" TeamBrkPtsWon="6"
TotPtsWon="110" TeamDeucePts="6" TeamDeucePtsWon="1" GamesPlayed="35"
GamesWon="21" />
</Team>
</Match>
</Scoreboard>

How could I loop through a specific node, such as "Scoreboard/Teams"
and pull out all the information for ONLY that specific node? Once
that is done I would like to be able to move to another node such as
"Match/Teams" and loop through only that node and get all the info. I
would not need to loop through every node in the file, just specific
ones.

As I mentioned, this is just a small sample of the file, it is more
complex than this, but if I could get to this stage I could figure the
rest out. All this info must be put into a database.

Please if anyone has an example on how to do this, I would really
appreciate it. I am in urgent need of getting this done immediately.

Thanks,
Steve

Jun 3 '07
67 2608
"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
On the former, sure...I could just drop it. When it stops being
entertaining to me, surely I will. :) I find his protestations amusing,
and am curious when *he* will simply stop replying to *me*. :)
Well good for you...

The problem with that is that this isn't *your* personal forum - even those
of us who have killfiled him still see your replies to him...

Until / unless even that becomes too irritating and you find yourself
killfiled too...
--
http://www.markrae.net

Jun 4 '07 #51
<"Mr. Arnold" <MR. Ar****@Arnold.com>wrote:
And I'll forewarn you and this entire NG Peter Pan, that killfile means
nothing to me as I'll come right through them, count on it. You should
listen to the message Peter Pan.
Why did you *suggest* it then?

Fortunately most trolls get bored fairly quickly. I think we'll have to
hope the same happens here.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jun 4 '07 #52
>
Fortunately most trolls get bored fairly quickly. I think we'll have to
hope the same happens here.
I am an EOR specialist. That's Equal Opportunity Ragger. You don't mess with
me and I won't mess with you. Now, you want to see some trolls I can
certainly bring some here with a cross post to them, because I have
certainly been in battle with a few over the years and they love to tangle,
believe me. :)

Most people such as yourself use that word troll loosely. I have played with
the dancers as I call them and cut them down. They don't mess with me. They
know better. You better know what a troll is before you try to label someone
with it.

http://www.hyphenologist.co.uk/killf..._troll_faq.htm

I have no interest in any of you. I would say that's the other way around. I
think I have made that clear time and time again. But I am not taking any
shit off of anyone in this NG.

I am already bored with you and the others. I have been bored. I am here to
help others if I can and the *regulars* such as yourself mean nothing, King.

Jun 4 '07 #53
On Mon, 04 Jun 2007 11:06:08 -0700, Mr. Arnold <MR. <Ar****@Arnold.com>>
wrote:
I talked to your mama a few minutes ago while I was banging her and she
said it was OK to talk to you, since you were a lonely being.
I'm sorry...is that supposed to be a meaningful statement? Am I supposed
to be disturbed by your own private fantasies? Your imagination is your
own business, and you are free to fantasize whatever you like. Doesn't
bother me one bit.

I remain amused that for someone who purports to not care about what I
think, write, say, etc. and even who claims to not even read what I write,
you sure have some pretty interesting reactions to all of those things.

Pete
Jun 4 '07 #54
On Mon, 04 Jun 2007 11:10:33 -0700, Mark Rae <ma**@markNOSPAMrae.net>
wrote:
The problem with that is that this isn't *your* personal forum - even
those of us who have killfiled him still see your replies to him...
Our discussion has remained (and will remain) confined to this thread. If
you see no value in this thread, I am bewildered as to why you continue to
read it.
Until / unless even that becomes too irritating and you find yourself
killfiled too...
I'm not clear on why you continue to see my replies to him, but if the
only solution you see around it is to killfile me, I suppose that's your
perogative.

Pete
Jun 4 '07 #55
Sigh. There are always a few that insinuate themselves into a group for a
period and simply defy any attempt at rational understanding.

Sooner or later, they tire of their shenanigans and just go away.

He will, too.

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Peter Duniho" wrote:
On Mon, 04 Jun 2007 11:06:08 -0700, Mr. Arnold <MR. <Ar****@Arnold.com>>
wrote:
I talked to your mama a few minutes ago while I was banging her and she
said it was OK to talk to you, since you were a lonely being.

I'm sorry...is that supposed to be a meaningful statement? Am I supposed
to be disturbed by your own private fantasies? Your imagination is your
own business, and you are free to fantasize whatever you like. Doesn't
bother me one bit.

I remain amused that for someone who purports to not care about what I
think, write, say, etc. and even who claims to not even read what I write,
you sure have some pretty interesting reactions to all of those things.

Pete
Jun 4 '07 #56


"Peter the Dildo wrote"
wrote:
>I talked to your mama a few minutes ago while I was banging her and e
said it was OK to talk to you, since you were a lonely being.

I'm sorry...I guess I am suppose to make a meaningful statement and I
can't. I am a disturbed lap dog deep in my private fantasies. My
imagination is my own business, and I am free to fantasize whatever I
like. It doesn't bother me, because I have to be me.

I amuse myself because I don't care what others think, I am a sorry
lapdog with a non interesting bark. I needs me a biscuit.

Pete the Dildo and NG lapdog/sheriff
<g>
Jun 4 '07 #57
One other thing here Pete Pan the Dildo, I should have been there at
your birth so that I could have strangled you with your own placenta. :)
Jun 4 '07 #58
"Peter Pan NG Lapdog wrote"
wrote:
>I talked to your mama a few minutes ago while I was banging her and e
said it was OK to talk to you, since you were a lonely being.

I'm sorry...I guess I am suppose to make a meaningful statement and I
can't. I am a disturbed lapdog deep in my private fantasies. My
imagination is my own business, and I am free to fantasize whatever I
like. It doesn't bother me, because I have to be me.

I amuse myself because I don't care what others think, I am a sorry
lapdog with a non interesting bark. I needs me a biscuit.

Pete Pan and NG lapdog/sheriff
<gI got to see the post stick. I had to change it, so I know you will
see it. :)

Jun 4 '07 #59
One other thing here Pete Pan you NG lapdog and sheriff, because this
one didn't make it either, I should have been there at your birth so
that I could have strangled you with your own placenta. :)
Jun 4 '07 #60
"Mr. Arnold" <Ar****@arnold.comwrote:
One other thing here Pete Pan you NG lapdog and sheriff, because this one
didn't make it either, I should have been there at your birth so that I
could have strangled you with your own placenta. :)
Unless they're allowing internet access from the various wards and prisons,
that would certainly eliminate you as a newsgroup troll.....

(I know, I know. Don't feed the trolls. But Endless September is upon us,
and I miss the good old days...)

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
Jun 4 '07 #61
Chris Mullins [Most Valuable Pussy] wrote:
"Mr. Arnold" <Ar****@arnold.comwrote:
>One other thing here Pete Pan you NG lapdog and sheriff, because this one
didn't make it either, I should have been there at your birth so that I
could have strangled you with your own placenta. :)

Unless they're allowing any access from the various wards and prisons,
that I have escaped from over the years, it would certainly put me as a wannabe troll.

(I know, I know. I can't help it. Don't feed me. Because endless toilet paper is around me,
and I need a good old wipe...)
<EOR>
Jun 4 '07 #62
Mark Rae wrote:
Just killfile him...
And allow him to harass anybody he wants without anyone
saying something because everybody killfiled him ?

Arne
Jun 5 '07 #63
Arne Vajhøj wrote:
Mark Rae wrote:
>Just killfile him...

And allow him to harass anybody he wants without anyone
saying something because everybody killfiled him ?

Arne
That's a good one. I like your style. :) But I tell you what I'll do,
I'll make sure I can come through everyone's killfile if I decide to
jump on someone in the NG in the future. This one is for you MR. <g>
Jun 5 '07 #64
"Mr. Arnold" <Ar****@arnold.comwrote:

[Silly Insults]

If you want to have a good flame, could you at least try to be creative?

Especially if you're trying to elicit responses from people so we can all
escalate up and have a true insulting session going on.

As it sits now, it's as childish as you walking into the argument clininc,
and the conversation is going:
"You're in the wrong place."
"No, I'm Not."
"Yes, you are."

Put some thought into your insults, really make 'em sting. As it sits, the
killfile awaits - if only because you're booring and unimaganitive.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
Jun 5 '07 #65
Chris Mullins [Multiple Most Valued What?] wrote:
>
[Silly Insults and I am here about it.]

If I want to have a good flame, I should at least be creative.

You got a response from me so now I need to see if I can escalate up
and have a true insulting session going on, because I am a wannabe.

As I sit on the toilet now, I dream of children walking in to see me,
and I dream about it all the time. I have plans for them.
I am going to put some thought into how I am going to make that work
sitting here. I am stupid and need to put myself into a killfile and
move to an outhouse.
<EOR>
Jun 5 '07 #66
Ah well.

If that's the best troll you can be, you're not really worth feeding.

Shame really, as I thought you had more potential than that.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
Jun 5 '07 #67

"Chris Mullins [MVP]" <cm******@yahoo.comwrote in message
news:uh*************@TK2MSFTNGP05.phx.gbl...
Ah well.

If that's the best troll you can be, you're not really worth feeding.

Shame really, as I thought you had more potential than that.
I guess you're bored now like the wannabe you are, MVP. It works every time,
even with the best of the flame dancers, the flame snuff-out. <g>

<EOR>

You take care now, ya hear.

<PLANK>
<bye>

Jun 5 '07 #68

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
2
by: csx | last post by:
Hi all, I'm trying to count the number of leafnodes for a particular node. What im trying to do is make a function, that taking the tree structure: key row desc parent 1 1 A ...
2
by: Claire Reed | last post by:
Dear All, I am repeatedly encountering a problem whilst looping through XML Nodes and I am unsure as to what is going on and how I can get around it. I load the following XML document into an...
4
by: Shapper | last post by:
Hello, I have a XML file that includes the node <item>: .... <title>...</title> <url>...</url> <item> <title>title 01</title> <description>description 01</description> </item>
2
by: pmcguire67 | last post by:
There has been a lot of discussion lately about extending the treeview control to allow finding a node by key rather than by index. Everyone seems to agree that a hashtable is needed to accomplish...
12
by: **Developer** | last post by:
Dim tvn As TreeNode For Each tvn In rootNode.Nodes ....SNIP rootNode.Nodes.Remove(tvn) Next
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
9
by: TF | last post by:
Hello all, I made a ASP.NET 2.0 site that shows possible "recipes" for paint colors stored in an access dbase. Basically, 1000 colors are stored with specific RGB values in separate columns. A...
6
by: fido19 | last post by:
Once upon a time, there lived a chimpanzee called Luycha Bandor (aka Playboy Chimp). Luycha was unhappily married to Bunty Mona, a short but cute little lady chimp. Luycha was tall and handsome –...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.