Hello I need to generate an xml with uppercase tags that would have to be final attributes in the template class to generate xml.
To do this, I'm trying to use the Java XStream API.
But being these final tags I can not generate a builder or create your sets because they are private?
Is there any way I can solve with XStream same or would it be better for another Java API to solve the problem?
Here is the class template I would need. If I leave the endless attributes, would it be strange to require that my xml tags need to be uppercase?
public class Metadados {
private final String NOME_USUARIO;
private final String IDADE_USUARIO;
private final String NUMERO_PROTOCOLO;
}
My XML would need to look like this:
<NOME_USUARIO>Paulo</NOME_USUARIO>
<COD_USUARIO>36</COD_USUARIO>
<COD_PROTOCOLO>20170111092247</COD_PROTOCOLO>