aspose file tools
The moose likes XML and Related Technologies and the fly likes question about xstream Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "question about xstream" Watch "question about xstream" New topic
Author

question about xstream

Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
when i marshall the java object to xml, the output has the xml with tags etc.

But it does not put the xml version etc on top of the file.

Any one has idea about how to rectify this??


Kishore
SCJP, blog
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Can't you just prefix whatever XStream produces with a standard <?xml version="1.0"?>?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
Originally posted by Lasse Koskela:
Can't you just prefix whatever XStream produces with a standard <?xml version="1.0"?>?


When u think of castor or other binding enablers, they generate this by default(some times based on xsd), I am more looking for a defaulting of this from xstream aswell.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about xstream
 
Similar Threads
What is rmiregistry, rmic, rmid and the rest ?
Question to authors
XML and DTD
Reading Writing Files
SOAP RPC vs Messaging