【发布时间】:2022-01-08 22:49:19
【问题描述】:
我正在尝试解析 q 中的 XML 文件。我能够展平文件,但进一步我无法提取结果。下面是数据集。
<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
无法进一步解析记录。任何建议都会有所帮助。
【问题讨论】:
-
我会说 q 在我看来不是要走的路。
标签: kdb