Question: I have a .xml file below, I want to parse it in pyspark (Spark using python) so that I can count the number of Id

I have a .xml file below, I want to parse it in pyspark (Spark using python) so that I can count the number of Id in this file. For example, the one below will output number of id = 3 after counting. I need the parser so that I can output a file that contain all Id content. For example, the output file will be:

7

8

9

Can someone help me please?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!