|
<thingies>http://www.bt285.cn/btjinglin bt精灵</thingies> <baz>6/25/00 12:46 AM</baz> <bar>This is the website value</bar> <sub> <age>1</age> <name>wangdei</name> </sub> </MarkTest> </PRE>
<MarkTest> <thingies>http://www.5a520.cn 小说520网</thingies> <thingies>http://www.bt285.cn BT下载</thingies> <thingies>http://www.bt285.cn/caj/ caj下载</thingies> <thingies>http://www.bt285.cn/baolimotuo/ 暴力摩托</thingies> <thingies>http://www.bt285.cn/btjinglin bt精灵</thingies> <foo>5</foo> <baz>6/25/00 12:46 AM</baz> <bar>This is the website value</bar> <sub> <age>1</age> <name>wangdei</name> </sub> </MarkTest>
view plaincopy to clipboardprint? package com.wutka.jox.test; import com.wutka.jox.*; import java.io.*; public class TestDeser { public static void main(String[] args) { try { FileInputStream in = new FileInputStream("bean.xml"); JOXBeanInputStream joxIn = new JOXBeanInputStream(in); TestBean testBean = (TestBean) joxIn.readObject( TestBean.class); |