I am creating a Parser assembly in C# to parse a XML structure. I have a XML schema defined for the XML files.
Using XSD tool I have created Class structures from XML Schema. The XML has various level hierarchy. So there are lot of class structures available.
Now In my Parser assembly I have serialize code which deserializes the XML file and provides the object of the top level class object which intern will have next level objects.
I want to provide APIs to the clients which are accessing my assembly. So after deserialzing the XML, I store top level object in my parser and access the object from where ever it is required. So I will be providing multiple APIs in my parser class itself to get the data. Is it right to keep methods to access data in Parser itself? or can I implement methods in corresponding classes which were generated using XSD tool?
Is there any common design approach which can be used for this case?