I have developed a small java program for automatic XML code generation for our project. here we have some JSON files where we have the code template.For every new component the corresponding JSON file is read and the code block is updated with the new component values and the xml files are auto updated with these code blocks.
Now the code should be added to the specific points in the file, so as a pointer I have code comments like:
<tag>
...
<!--Add the configuration code here -->
...
...
<!--Add the deletion code here -->
</tag>
Now I need to create a metadata of these comments. so that I can read these comments , check if they exist in the file and then add the code.
Anyone who can tell me the best way to do this.