xstream Questions

3

Solved

XStream by default unnecessarily escapes >," ... etc. Is there a way to disable this (and only escape <, &)?
Astrionics asked 23/5, 2010 at 10:10

2

Solved

I have beans which have Objects which can contain different types. Now when I create XML it will add class attribute to serialized object. I would like to change that for example class simple name....
Dominiquedominium asked 9/4, 2012 at 11:14

1

Solved

I'm using xstream to process an xml string but some fields of the object have changed between versions, so i'm implementing a custom converter. A summary of the field changes is listed below, and o...
Lithe asked 24/5, 2011 at 8:54

1

Solved

I'm not sure how this is even possible, but the program I am running is giving me an odd error. I am getting an ArrayIndexOutOfBoundsException: -1 on a for each loop. The entire error is below: Ex...
Inversion asked 25/9, 2015 at 5:54

4

I'm getting the following error when it tries to create an instance of 'Transacao' `Error: Cannot construct br.com.cbmp.ecommerce.resposta.Transacao as it does not have a no-args constructor : Can...
Vociferance asked 8/3, 2012 at 16:43

3

Solved

How to convert List of Object to XML doc using XStream ? and how to deserialize it back ? This is my xml <?xml version="1.0" encoding="UTF-8"?> <persons> <person> <fullna...
Ensemble asked 2/11, 2010 at 11:13

5

Solved

How do I remove the class=”Something ” attributes in Xstream . I use Xstream with annotations
Arenaceous asked 5/1, 2010 at 17:59

3

Is there a way to create a converter or some operation that is performed after every single conversion? For context, I am trying to populate default values for fields that are not in my XML in orde...
Keddah asked 17/4, 2013 at 13:2

1

I have downloaded and added xstream-1.4.8.jar to my Android Studio project. When I build the project it works fine but when I try to run it I get the following error from the Gradle Build window: ...
Mitziemitzl asked 9/3, 2015 at 15:41

6

Solved

I currently use a piece of XML like the following <Person> <Name>Frank Smith</Name> <Id>100023412</Id> <DOB>12/05/1954</DOB> <LasLogin>01/09/201...
Pail asked 10/12, 2010 at 14:24

1

I'm working on a Spring-Batch program. I unmarshalls XML files with XStreamMarshaller. How can I make a XStreamMarshaller to skip any unknown+unannoated fields? <bean id="merge.reader.item" c...
Grandniece asked 12/2, 2015 at 13:1

5

Solved

How can I create an InputStream object from a XML Document or Node object to be used in xstream? I need to replace the ??? with some meaningful code. Thanks. Document doc = getDocument(); InputStr...
Trigeminal asked 14/5, 2009 at 18:47

1

Solved

This is my text file: 5625145214 6 8562320154 2 8542154157 5 6325145214 5 5214214584 6 5625142224 3 8562456754 1 I want to use XStream to generate XML file: This is my code: private static vo...
Sorayasorb asked 10/8, 2014 at 15:27

3

Solved

I would like to marshall Java objects into XML and vice-versa from within an Unsigned Applet and I can't change any of the security permission/policy files, or sign the application. I seem to get...
Perishing asked 18/1, 2010 at 7:8

8

Suppose I want to store many small configuration objects in XML, and I don't care too much about the format. The XMLDecoder class built into the JDK would work, and from what I hear, XStream works ...
Bullen asked 18/9, 2008 at 19:30

2

Solved

This is the frist time I am trying XStream. But when I try to parse my xml file i am getting this exception : Exception in thread "main" com.thoughtworks.xstream.mapper.CannotResolveClassExceptio...
Mn asked 22/1, 2014 at 12:31

1

Solved

In a unit test project, I need some help figuring out how how I can hide 2 unnecessary parent nodes in marshaled XML? Can anyone help me figure out how to do it? My marshalled output looks like th...
Antagonize asked 15/12, 2013 at 23:42

3

Solved

I want to store some class to xml: XStream xstream = new XStream(new DomDriver()); List<String> modules = new ArrayList<String>(); modules.add("mod1"); modules.add("mod2"); Modul...
Odellodella asked 16/1, 2012 at 16:17

3

Solved

I have a date field, which when converted to xml using XStream, gives time in milliseconds and zone. I just need to convert or format it as "MMMM dd, yyyy HH:mm:ss". How to do that using XStream? I...
Kabyle asked 12/2, 2012 at 21:16

1

I have a binary file that contains Java Serialized objects (which are value objects), but I do not have access to the Class that was serialized to create those objects. Without the class file, JVM ...
Anthracoid asked 12/8, 2013 at 2:39

3

Solved

I was using XStream for deserialization of xml in my Android app, and now I'm struggling to add Proguard (obfuscator) to the mix. Here's the runtime exception I run into (full: pastebin): WARN/Sy...
Heilungkiang asked 20/6, 2011 at 22:26

1

Hi I saw a XStream implementation for Google App Engine however I am still getting a "Cannot construct [class] as it does no have a no-args constructor" @Test public void testNoNoArgs() { Ca...
Donnadonnamarie asked 4/4, 2013 at 5:13

2

I am dealing with a fairly complex object graph in my database. I am using XStream to serialize and deserialize this object graph which works fine. When I import an object graph of an object that e...
Kirima asked 15/3, 2013 at 14:54

3

Solved

I am currently deserializing JSON using XStream, and it has been working great. However, when I have JSON string like the following { key1: { an_object: { something: 'foobar' } }, key2: { anothe...
Dixie asked 11/8, 2009 at 22:33

3

Solved

I have to deal with (a variation of) the following scenario. My model classes are: class Car { String brand; Engine engine; } abstract class Engine { } class V12Engine extends Engine { int ho...
Goebel asked 27/12, 2012 at 11:3

© 2022 - 2024 — McMap. All rights reserved.