I expect the value for child_text to be 'Child Text' and not NULL.
Any ideas on how to solve this issue? @srowen , @HyukjinKwon
PS. I tried defining a schema and forcing child to be a String type (instead of struct), however, any other node after that is ignored (although I do see the string 'Child Text')
Cannot parse XML node value (text), when there is an inner XML node
Given the following XML:
Reading the XML using Spark XML:
Does not give the desired result:
I expect the value for child_text to be 'Child Text' and not NULL.
Any ideas on how to solve this issue? @srowen , @HyukjinKwon
PS. I tried defining a schema and forcing child to be a String type (instead of struct), however, any other node after that is ignored (although I do see the string 'Child Text')