c# - Oracle 11.2 - store html in column.
What is the recommended column type when storing html?
html files > 100K
Snapshot example html (obvisouly not 100K):
<html>
<body>
<table width='100%'>
<tr>
<td colspan='2' align='center'><b>Legend:<
/b>
<font style='background-color: yellow' color='black'>added
</font>
<font style='background-color: red' color='black'>removed
</font>
<font style='background-color: lightgreen' color='black'>changed
</font>
<font style='background-color: red' color='blue'>moved from
</font>
<font style='background-color: yellow' color='blue'>moved to
</font>
<font style='background-color: white' color='#AAAAAA'>ignored
</font></td>
</tr>
<tr><td><b> File Name : 20120507T094230.xml</b></t
d>
</tr>
<tr>
<td style="padding-left: 10pt;">
<font style="background-color: white" color="black"><Envelope
</font>
<font style="background-color: white" color="black">xmlns:p1="
http://www.w3.org/2001/XMLSchema-instance"
</font><br />
&nbs
p; &n
bsp;
<font style="background-color: white" color="black">xmlns="
http://schemas.xmlsoap.org/soap/envelope/"
</font>
<font style="background-color: white" color="black">>
</font></td>
<td style="padding-left: 10pt;">
<font style="background-color: white" color="black"><Envelope
</font>
<font style="background-color: white" color="black">xmlns:p1="
http://www.w3.org/2001/XMLSchema-instance"
</font><br />
&nbs
p; &n
bsp;
<font style="background-color: white" color="black">xmlns="
http://schemas.xmlsoap.org/soap/envelope/"
</font>
<font style="background-color: white" color="black">>
</font></td>
</tr>
<tr>
<td style="padding-left: 25pt;">
<font style="background-color: white" color="black"><Body
</font>
<font style="background-color: white" color="black">>
</font></td>
<td style="padding-left: 25pt;">
<font style="background-color: white" color="black"><Body
</font>
<font style="background-color: white" color="black">>
</font></td>
</tr>
</table>
</body>
</html>
Can I store this in XMLType? I can view the contents of XMLTYPE using SQLDeveloper vs Clob\Blob.
Thoughts?
Thanks in advance.
CLOB or XMLTYPE.
>> I can view the contents of XMLTYPE using SQLDeveloper
Yes. an XMLTYPE is baically a CLOB with some extra stuff added. You can easiy convery it to a CLOB with the .getclobval() method.