Am trying to parse XML file in q. Am able to flatten the file but, further i could not extract the result. Below is the data set.
<breakfast_menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>
Two of our famous Belgian Waffles with plenty of real maple syrup
</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>
Light Belgian waffles covered with strawberries and whipped cream
</description>
<calories>900</calories>
</food>
</breakfast_menu> ```
Below is the code i have tried so far.
file: read0 `$"File.xml"
file1: raze file
file2: enlist file2
Unable to parse the records further. Any suggestion will be helpful.