At work we have a set of raw XML config files (for which there is no schema available (unfortunately)).
Now, it is my task to create a class structure (heirerarchy) that is able to load and save this kind of XML file. I have gotten 80% of the way there but I can't quite figure out how to store an array of items without having the outer tag..
I don't want these 2 tags (but I can't work out how to get rid of them)...
I can't show you the code I'm afraid (top secretCode:<MyObject> <ArrayOfThingies> <Thingy name="A"/> <Thingy name="B"/> <Thingy name="C"/> <Thingy name="D"/> </ArrayOfThingies> </MyObject>) but if someone could give a really simple example of how to have array data inside XML without the array object tags I would be most grateful.
Many thanks.
tp.


) but if someone could give a really simple example of how to have array data inside XML without the array object tags I would be most grateful.
Reply With Quote
