I have an XML file that has certain properties and mappings defined in it. These properties change very rarely. I don’t want to reload and evaluate the properties/mappings every time I call use my jar file. Is there any way I can pre-compile my XML file into an object, so that the XML values get stored in the object? Whenever I change the XML file, if ever, I just need to recompile it once.
Share
You could just use a Java file to define these properties and mappings to begin with. No need to mess with XML if you aren’t going to take advantage of loading changes to it without recompiling.