如何将XML转换为OCI-Lob对象? [英] How to convert XML to OCI-Lob Object?

查看:95
本文介绍了如何将XML转换为OCI-Lob对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的XML如下-

<?xml version="1.0"?>
<step number="9">
  <s_name>test</s_name>
  <b_sel>123456</b_sel>
  <b_ind>7</b_ind>
</step>

我希望将其转换为如下所示的OCI-Lob对象-

I want this to be converted to OCI-Lob object as below -

OCI-Lob Object
(
    [descriptor] => Resource id #130
)

我一直在寻找与PHP中与OCI-Lob有关的几乎所有线程,但没有得到我想要的信息.

I have looked for almost all the threads related to OCI-Lob in PHP but didn't get the information which I am looking for.

希望您能理解我的问题.任何对此的建议将不胜感激.

Hope you understand my question. Any suggestions on this would be appreciated.

谢谢.

推荐答案

要获取OCI-Lob对象,我们确实需要Oracle Select查询,此外,我们可以使用getClobVal()或任何函数传递XMLAttributes/Elements.但是我们无法解析XML并将其转换为OCI-Lob对象,因为它始终与Oracle数据库/服务器交互.

To get OCI-Lob Object We do need Oracle Select Query in addition we can pass XMLAttributes/Elements with getClobVal() or any function. But We can't parse XML and convert it to OCI-Lob Object as it always interact with the Oracle Database/Server.

OCI

这篇关于如何将XML转换为OCI-Lob对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆