• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Alternative to xStream

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to find an alternative to xStream. The use case is having the ability to serialise objects into a human readable form (most likely XML).

My company has been having some permission problems with xStream and has decided to drop the library. Any suggestions?

Thank you.
 
Marshal
Posts: 76393
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not a "beginning" question. Moving thread.
 
Anthony Campbell
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do apologise however, I've had some success using XMLEncoder if anyone is interested.
 
Campbell Ritchie
Marshal
Posts: 76393
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're not at fault, but apology accepted .

We do like to keep "beginning Java" for beginner's type questions. If the forum fills with harder questions, we are afraid it would scare possible users off.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a number of XML APIs in the standard Java library, and since Java 6 there's an XML streaming API - have a look at the documentation of package javax.xml.stream and JavaTM API for XML Processing (JAXP) from the JDK 6 documentation.

If you're not using Java 6, then there are other third-party libraries which implement the StAX API and that run on Java 5, see for example Woodstox. (On the other hand, if you're not using Java 6, having the streaming XML API in Java 6 could be an argument for you to convince your boss to upgrade to Java 6).

For background information see JSR 173: Streaming API for XML.

If you're looking for an easy way to convert XML to Java objects and vice versa, then have a look at Java Architecture for XML Binding (JAXB), which is also part of the standard Java API.
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic