Steve Luke wrote:
Punit Jain wrote:... if i can call that java class in one xml file, and load data using that xml file,...
XML is a markup language, not a language for executing code, so what you say in this statement makes no sense.
What exactly is your issue? It is not clear at all. Here is what I understand:
1) You have an application which stores data in XML
2) You wrote a class which loads data from XML into Java
3) You have an installer
After that I have no idea what you want or need. You talk about xml loaders, but what are those? What is the step that is missing? What exactly is supposed to happen at install time?
well, sorry for the lack of information, i can't tell exactly what that data is.
but,
we have a product (a PLM software), usually we use loader(below example kind of loaders) to
create data and load that data to our product, and if needed we can add that data at our product installation process, for that we have our own framework, which loads that data (Add those loader to our installation process).
And for creating that data using xml's we use our utility classes.
xml calls api's from those utility classes and create that data, for ex:
(suppose i need to create a user in our product, i call appropriate api in the xml, provide appropriate arguments and load that file, and it creates user to our product, something like this):
EX:
But the task which was given to me was to create a huge amount of data, for ex: 2000 user(just for example, but actual data was complex).
so if i created that using xml, they would get millions of lines, so instead of xml, i wrote a java class in which i used some loops, which create that data (for ex: 2000 users).
Now problem i am facing is, we can only load data using those loader (xml's), to our product, our framework allows them only, of course i can't change the framework, but if anything i could do from my side?
hope you got me, else let me know.
Thanks,
Punit