I don't know how to add attributes to a node. I have seen is possible with annotations but I haven't been able to create the structure I want. I am newby to XML parsing so other approaches are ok. I found xstream and found it very easy as a start but now I am lost.
Anyway I think xstream maybe is not the best way to deal with XML.... For simple structures is ok though.
Maybe or maybe not... But wouldn't it be reasonable to know the framework (or at least covering "simple structure") before coming to or tossing such opinion? I am not saying XStream is best (but which framework is, unconditionally?) and its limitation is not a secret: but it has its own place in the serialization biz.