Posts Tagged ‘xml’
JAXB @XmlAnyElement example
Monday, June 7th, 2010
The problem
I was recently working on a JAXB centric app which was required to capture “arbitary” xml. e.g.
<a>
<b></b>
<c></c>
<d>
<!-- "Unknown" XML here -->
<maybee></maybee>
<maybef></maybef>
<!-- etc etc -->
<d />
</d></a>
How could I ever capture the contents of
(more...)
Tags: annotations, java, jaxb, xml
Posted in Development, quick tips | No Comments »
How to convert a CLOB to an XMLType in Oracle
Thursday, June 3rd, 2010
Not much comment to add here; code says it all
PROCEDURE clobToXMLType(myClob IN CLOB)
IS
l_xmlType XMLTYPE;
-- do something
BEGIN
l_xmltype := XMLTYPE.createXML(myClob);
EXCEPTION
WHEN OTHERS THEN
RAISE;
END clobToXMLType;
Tags: oracle, plsql, xml
Posted in Development, quick tips | No Comments »
