Hi, I wonder how to use the dom4j Schema capabilities to get Java Objects mapped from XML elements like this :
<field name="foo" type="xsd:string">bar</field> >From the cookbook-example I got the impression that receiving a java.lang.String object is quite that simple : // snip Object obj = ((DatatypeElement)root.selectSingleNode("/record/field")).getValue(); if (obj instanceof java.lang.String) { .... } // snip but it's not that simple, is it ? :) (I just got an ClassCastException from DefaultElement to DatatypeElement) help would be greatly appreciated ! -- Florian
smime.p7s
Description: application/pkcs7-signature