Hi Rakesh,

You might also take a look at the Derby code. org.apache.derby.vti.XmlVTI provides a number of static methods for turning an XML resource into a JDBC ResultSet.

Thanks,
-Rick

On 8/31/15 4:44 AM, Sonal Goyal wrote:

I think the mahout project had an xmlinoutformat which you can leverage.

On Aug 31, 2015 5:10 PM, "rakesh sharma" <rakeshsharm...@hotmail.com <mailto:rakeshsharm...@hotmail.com>> wrote:

    I want to parse an xml file in spark
    But as far as example is concerned it reads it as text file. The
    maping to xml will be a tedious job.
    How can I find the number of elements of a particular type using
    that. Any help in java/scala code is also welcome

    thanks
    rakesh


Reply via email to