Good Day! I can't figure out how to make a correct XML-file.
Here is what i have tried as code:
outFile.println("<ProjectsData>");
for (Project project : projects) {
outFile.println("<Project>" + project.getName() + "</Project>");
outFile.println("<ProjectID>" + project.getProjectId() + "</ProjectID>");
outFile.println("<License>" + project.getLicenseId() + "</License>");}
outFile.println("</ProjectsData>");
Is it necessary that the ID and the license are under the product should be aligned like that:
<ProjectsData>
<Project="bsssk101">
<ProjectID>101Y</ProjectID>
<License>XML Developer's Guide</License>
</Project>
</ProjectsData>
if yes... How to do it?