The Killer18
New Member
My program JAVA:\[code\]public static String toXml() {KtpMessage ktpMessage =new KtpMessage();ktpMessage.setdetails("test");XStream xstream = new XStream(new StaxDriver());String objectXml = xstream.toXML(ktpMessage);return objectXml;\[/code\]The result is :\[code\]<?xml version='1.0' encoding='utf-8'?><Myclasses.message><details>test</details></Myclasses.message>\[/code\]my problem:I want to generate the "objectXml" but without \[code\]<?xml version='1.0' encoding='utf-8'?>\[/code\]how can I do that ?i want have this result:\[code\]<Myclasses.message><details>test</details></Myclasses.message>\[/code\]thanks for your help