xstream « tag « Java XML Q&A

Home
Java XML Q&A
1.convert
2.Development
3.document
4.dom
5.dom4j
6.dtd
7.element
8.jaxb
9.jaxp
10.jdom
11.jsoup
12.namespace
13.Node
14.parse
15.parser
16.pdf
17.sax
18.schema
19.stax
20.tag
21.transform
22.Validation
23.xalan
24.xmlbeans
25.xpath
26.xsd
27.xslt
28.xstream
Java XML Q&A » tag » xstream 

1. XStream empty tag when List is empty    stackoverflow.com

When using XStream, I get am empty tag(on the collection field) if I try to serialise an Object has java.util.List collection which is empty. How to I remove that empty tag ...

2. Java XStream - Ignore tag that doesn't exist in XML    stackoverflow.com

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/2010</LasLogin>
    <FavOS>Windows</FavOS> ...

3. How to store attribute and value of a XML tag using XStream    stackoverflow.com

I have the following XML file

<?xml version="1.0"?>
<paths>
    <path action="M">some/path</path>
    <path action="D">another/path</path>
</paths>
I am trying to read it using the following classes:
public class Paths {
   ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.