XML Input
<doc>
<Title>Solr Doc</Title>
<Type>
<Type priority="0">High</Type>
</Type>
<Group>
<Group level="0">HR</Group>
<Group level="1">Finance</Group>
</Group>
</doc>
Output after parse:
Title : Solr Doc
Type_0 : High
Group_0 : HR
Group_1 : Finance
What I have done to get the multi value value data?
val data = <Input XML>
val list = data.flatMap(_.child.map(_.text)).distinct
val first_level = list(0)
//Apply the logic in loop and get the result.
Is there any better way to get the result especially which has multivalue data like Group and Type ?
