❔ xml reading problems with duplicate element names
im trying to read a xml style map file and it has multiple groups elements of 'object' which all have different attributes. I only want to read through the
object
s in one objectgroup
at a time anyone know how to do that?![](https://utfs.io/f/4b26f18d-c9e3-4e69-804b-66b8c6c30572-1nq2cb.png)
5 Replies
this is the xml
Could you use ReadSubtree on the objectgroups and then iterate over the objects https://learn.microsoft.com/en-us/dotnet/api/system.xml.xmlreader.readsubtree?view=net-8.0
XmlReader.ReadSubtree Method (System.Xml)
Returns a new XmlReader instance that can be used to read the current node, and all its descendants.
![HmmCouncilRTX3](https://cdn.discordapp.com/emojis/1104162458949664881.png)
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.