Taber C.

asked • 09/08/22

Reading multiple XML tags with identical field tag titles

Brand new at trying to program XML. I am trying to program an XML file for one piece of software that has to read another XML across my network. The data that is being "read" is sports scores. I can program the XML to read the first games data set just fine. But I do not know how to program the XML to read the subsequent games data because all of the field tags in all of the games have the same title.

1 Expert Answer

By:

Donald W. answered • 09/12/22

Tutor
5.0 (214)

Personalized tutoring in Math and Computer Science

Taber C.

Hay Thanks! This makes sense for the XML that I am programming. However, the problem is that the XML that I am reading data from does NOT have this data nested in anyway that separates it from other game(s) data. All of the tags and categories are the same. So I don't know how to get the XML I am programming to read any data fields except the first section. All of the subsequent sections are labeled exactly the same but contain different data. I should add that the XML that I am trying to read data from is not programmed by me. So I can't alter it in anyway. Hopefully this makes my issue clearer.
Report

09/13/22

Donald W.

Can you provide a sample of the XML that you're parsing?
Report

09/14/22

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.