<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 10:18:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Alberto Viana's Blog: Zend Framework and Oracle XMLType]]></title>
      <guid>http://www.phpdeveloper.org/news/16886</guid>
      <link>http://www.phpdeveloper.org/news/16886</link>
      <description><![CDATA[<p>
<i>Alberto Viana</i> has a new post to his blog about <a href="http://blog.albertoviana.com/2011/09/19/zend-framework-and-oracle-xmltype/">using Oracle ZML Types with a Zend Framework application</a>. He created a custom adapter to create the type and handle the binding/execution on an new OCI8 connection.
</p>
<blockquote>
So few days ago I needed to insert Oracle XMLtype with Zend Framework. I used oracle adapter to wrote it in Zend Framework. I was looking for and I found on Chris Jones Blog.
</blockquote>
<p>
His table has a column defined as an <a href="http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb04cre.htm">XMLType</a>, a special data type specifically for working with XML datasets directly in the database. His adapter includes a bit of sample XML and the code needed to bind the data as a CLOB and, using the <a href="http://us.php.net/manual/en/function.oci-lob-writetemporary.php">writeTemporary</a> function.
</p>]]></description>
      <pubDate>Wed, 21 Sep 2011 09:52:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Jones' Blog: Inserting and Updating Oracle XMLType columns in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12858</guid>
      <link>http://www.phpdeveloper.org/news/12858</link>
      <description><![CDATA[<p>
All of you Oracle users out there might want to check out <a href="http://blogs.oracle.com/opal/2009/07/inserting_and_updating_oracle_1.html">this recent post</a> from <i>Chris Jones</i>, especially if you've been using the XMLType columns in your tables.
</p>
<blockquote>
Today a reader mailed me about manipulating XMLType columns when the data is longer than the 4K limit that character-type handling imposes. My free book (see sidebar) has examples of how to do this using CLOB handling in PHP. I noticed that my xmlinsert.php example in the book does a SELECT and UPDATE, but never actually does an INSERT.
</blockquote>
<p>
To correct the problem of the missing example he includes <a href="http://blogs.oracle.com/opal/2009/07/inserting_and_updating_oracle_1.html">example code</a> to connect to the database, push the XML into a bind variable and select the row back out to ensure everything's still structured correctly. You need to set up a new descriptor for the insert to work (CLOB).
</p>]]></description>
      <pubDate>Mon, 13 Jul 2009 08:14:21 -0500</pubDate>
    </item>
  </channel>
</rss>
