如何使用进度4GL DOM读取具有多个元素的XML文件并写入临时表?



请帮我读取这个xml文件并使用进度4gl写入临时表

我的 xml 文件如下所示。

<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
<bookone>
<title>Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</bookone>
<cars>
<model>
<plate>12345</plate>
<purchase>04/03/2011</purchase>
<insurence>yes</insurence>
</model>
<model>
<plate>56789</plate>
<purchase>04/03/2011</purchase>
<insurence>no</insurence>
</model>
</cars>
<booktwo>
<title>XQuery Kick Start</title>
<author>James McGovern</author>
<author>Per Bothner</author>
<author>Kurt Cagle</author>
<author>James Linn</author>
<author>Vaidyanathan Nagarajan</author>
<year>2003</year>
<date>02/05/2009</date>
</booktwo>

</bookstore>

我尝试了带有重复语句的代码,但不起作用。

Progress 4gl 带有内置的 XML 解析器。有萨克斯和多姆。实际上,Sax 解析器对您更有用,并且在文档中有一个很好的起点,关于如何使用它,在这里:https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/dvxml/example-code-3a-reading-customer-data-and-writing.html

最新更新