Java Serialization to XML
JSX (Java Serialization to XML) 是一个用来将java对象序列化成XML文件的类库。
下面是一个序列化后的XML例子:
<jsx major="1" minor="1" format="JSX.DataReader">
<object id="i0" class="Evolve1">
<declaredClass class="Evolve1">
<default>
<array field="array" id="i1" base="java.lang.Object" dim="1" length="5">
<string id="i2" value="red"/>
<string id="i3" value="green"/>
<string id="i4" value="blue"/>
<null/>
<object id="i5" class="Datum">
<declaredClass class="Datum">
<default>
<string field="name" id="i6" value="fred"/>
<primitive field="age" type="int" value="24"/>
</default>
</declaredClass>
</object>
</array>
<primitive field="days" type="int" value="22"/>
</default>
</declaredClass>
</object>
</jsx>
评论