xmlBean类
Posted IT心得
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xmlBean类相关的知识,希望对你有一定的参考价值。
package com.bwie.vo; import java.util.List; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamImplicit; @XStreamAlias("oschina") public class XmlBean { public String catalog; public String newsCount; public String pagesize; public Newslist newslist; @XStreamAlias("newslist") public class Newslist { @XStreamImplicit(itemFieldName = "news") public List<News> news; } public class News { public String id; public String title; public String body; public String commentCount; public String author; public String authorid; public String pubDate; public String url; public Newstype newstype; } @XStreamAlias("newstype") public class Newstype { public String type; public String authoruid2; public String eventurl; public String attachment; } }
2、
package com.bwie.vo; import java.util.List; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamImplicit; @XStreamAlias("oschina") public class XmlBean_1 { public String pagesize; public Blogs blogs; @XStreamAlias("blogs") public class Blogs { @XStreamImplicit(itemFieldName = "blog") public List<Blog> blog; } public class Blog { public String id; public String title; public String body; public String url; public String pubDate; public String authoruid; public String authorname; public String commentCount; public String documentType; } }
以上是关于xmlBean类的主要内容,如果未能解决你的问题,请参考以下文章
来自 xmlbeans 的 RuntimeException - 找不到已编译的模式
2.4 Apache Axis2 快速学习手册之XMLBeans 构建Web Service
阅读Microsoft Word文档时出现Android Apache POI错误:org.apache.xmlbeans.SchemaTypeLoaderException无法解析句柄的类型(代码片
xsd:包含soapUI中的异常:org.apache.xmlbeans.XmlException:org.apache.xmlbeans.XmlException:错误:null之后的文件意外结束(
解决:java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlObject报错问题。