Java 正在hadoop上分析xml文件。。。

Java 正在hadoop上分析xml文件。。。,java,xml,hadoop,xml-parsing,mapreduce,Java,Xml,Hadoop,Xml Parsing,Mapreduce,如何在Hadoop上解析结构如下的xml文件: <row Id="2292" PostTypeId="2" ParentId="2284" CreationDate="2008-08-05T13:28:06.700" Score="0" ViewCount="0" Body="&lt;p&gt;The first thing you should do is contact the main people who run the open source project. A

如何在Hadoop上解析结构如下的xml文件:

<row Id="2292" PostTypeId="2" ParentId="2284" CreationDate="2008-08-05T13:28:06.700" Score="0" ViewCount="0" Body="&lt;p&gt;The first thing you should do is contact the main people who run the open source project. Ask them if it is ok to contribute to the code and go from there.&lt;/p&gt;&#xD;&#xA;&#xD;&#xA;&lt;p&gt;Simply writing your improved code and then giving it to them may result in your code being rejected.&lt;/p&gt;" OwnerUserId="383" LastActivityDate="2008-08-05T13:28:06.700" />

注意:我已经为它编写了代码,但它不能正常工作。需要一个新的方法


先谢谢你

查看,它可能需要修改一点。

对于我使用的开始标记和结束标记“”,但无法获得正确的o/p。。。请您提出任何修改建议。@AnilKrShokeen:尝试分别使用
作为开始和结束标记。您能解决此问题吗?@TechCrunch是的,请参阅