Skip navigation links

Package org.simpleframework.xml

Provides all of the core annotations that can be used within a class.

See: Description

Package org.simpleframework.xml Description

Provides all of the core annotations that can be used within a class. All annotations here are used to describe an XML schema based on the fields and methods of a class. Annotations can be placed in various locations within the class, for example take the following class.
 
    @Root
    public class Example {
    
       @Attribute
       private String name;
 
       @Element
       private String value;
   
       public Example() {
          super();
       }
       
       // ...
    }
    
 
When a class is annotated in a similar manner to the above example it can be converted to and from an XML document using an implementation of the Serializer interface, which is provided in the core package. Below is an example of the resulting XML when writing the above annotated class.
    
    <example name='x'>
       <value>y</value>
    </example> 
    
 
The same instance can be recovered from the XML document at a later stage if required. For further information on how to annotate classes see the documentation for the annotations within this package.
See Also:
org.simpleframework.xml.core
Skip navigation links