【发布时间】:2021-05-13 09:00:56
【问题描述】:
我正在尝试删除 xml 文件的结尾部分并将其保存到变量中。
xml有类似这样的结构:
<what_to_delete>
<Body_of_what_to_Delete>
several strings of characters i want to delete
spreaded across several lines.
</Body_of_what_to_Delete>
</what_to_delete>
我想知道PL/SQL中是否存在一个合适的函数来实现这个请求。
类似于从“
DELETE_FROM(file_to_trim, '<what_to_delete>', '</what_to_delete>');
这应该存在于多个 xml 文件中,而不仅仅是一个。另外,我要删除的内容因文件而异,因此“从'删除到''”将是最合适的方式。
【问题讨论】: