Archive for June, 2010
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 »
Log4j Nested Diagnostic Contexts (NDC)
Wednesday, June 2nd, 2010
Introduction and Problem
Log4j is a brilliant set of libraries which provides good “out of the box” logging capabilities.
Sometimes however, in multi-threaded environments (for example web apps), it can be hard to decipher the interleaved messages from the various clients
(more...)
Tags: java, log4j, logging
Posted in Development, How to's | No Comments »
