So I want to read data from an xml file, I am now at a point where I have XMLReader and ContentHandler in place and when the endDocument() is fired I have “collected” all the data I need from the document.
But now it seems that I ran into a wall…
How do I return the collected data (from the ContentHandler) so that it can be used in my application?
You may create a
List<T>in ContentHandler.Obtain list from the Handler: