XStream - Tag Creation for xml version
问题 I was going through the Xstream tutorials http://x-stream.github.io/annotations-tutorial.html How can i add the processing instruction to the xml responses <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n Ex: Xstream gives the response as <message><type>15</type></message> But i would want the instruction also part of the response.. Is there any way i could get it .. For now am prefixing the string response with this tag which i feel is not the best approach. Regards 回答1: If you are talking about