How to convert XML to OCI-Lob Object?

主宰稳场 提交于 2019-12-31 05:43:11

问题


I have a XML as below -

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

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

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

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.

Thank you.


回答1:


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



来源:https://stackoverflow.com/questions/29818820/how-to-convert-xml-to-oci-lob-object

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!