如何以高效的方式解析和创建xml以下的java pojo?请建议任何有效的解析器.
原文链接:/xml/292976.htmlXML格式是
<?xml version="1.0" encoding="utf-8"?> <CCMainRootTag ID="12"> <Header TableName="TableName" TableVersion="12" TableID="12" CreatedDate="2013-02-09T15:35:33" CreatedByUserName="ABC" CreatedBySystem="ABC" /> <ClassPrimary ID="12" Code="Y" DescriptionDK="DK language " DescriptionUK="" DefDK="" DefUK="" IFDGUID=""> <ObjectClass ID="12" Code="YA" DescriptionDK="DK Language" DescriptionUK="" DefDK="" DefUK="" IFDGUID=""> <Synonym> <Concept Description="Description" Language="DK" /> <Concept Description="" Language="UK" /> <Concept Description="Description" Language="DK" /> <Concept Description="" Language="UK" /> <Concept Description="Description" Language="DK" /> <Concept Description="" Language="UK" /> <Concept Description="Description" Language="DK" /> <Concept Description="" Language="UK" /> </Synonym> </ObjectClass> <ObjectClass ID="12" Code="YB" DescriptionDK="DK Language" DescriptionUK="" DefDK="" DefUK="" IFDGUID=""> </ObjectClass> <ObjectClass ID="12" Code="YC" DescriptionDK="DK Language" DescriptionUK="" DefDK="" DefUK="" IFDGUID=""> </ObjectClass> <ObjectClass ID="12" Code="YD" DescriptionDK="DK language" DescriptionUK="" DefDK="" DefUK="" IFDGUID=""> </ObjectClass> </ClassPrimary> </CCMainRootTag>
我已经使用了这个Link但它的性能很慢而且问题没有效果pojo.
我想解析器以有效的方式为我提供直接的java pojo.