Inactive Tutor answered 09/12/22
You would want to do something like nesting the scores of each game in their own tag. Here's an example:
Inactive Tutor
Can you provide a sample of the XML that you're parsing?09/14/22
Taber C.
asked 09/08/22Brand 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.
Inactive Tutor answered 09/12/22
You would want to do something like nesting the scores of each game in their own tag. Here's an example:
Inactive Tutor
Can you provide a sample of the XML that you're parsing?09/14/22
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
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.09/13/22