xstream Questions
3
Solved
XStream by default unnecessarily escapes >," ... etc.
Is there a way to disable this (and only escape <, &)?
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....
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.