commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc DEXET <Marc.De...@dsi.cnrs.fr>
Subject RE : [betwixt - dom4j] How to get a dom4j XML element from BeanWr iter
Date Fri, 28 Jan 2005 15:45:39 GMT
Thank for all folks, I get the answer !

You have to use org.dom4j.io.SAXContentHandler.SAXContentHandler(
org.dom4j.dom.DOMDocumentFactory ) constructor;

Marc DEXET wrote:
> Hello guys
> I would to get a dom4j xmlElement from a BeanWriter.
> A use SAXBeanWriter and dom4j SAXContenetHandler but I get a
> strange result
>> 
> <person id="1">
>   Paul<name/>
>   22<age/>
> </person>
> 
> instead of
> 
> <person>
>   <name>Paul</name>
>   <age>22</age>
> </person>
> 
> Have somebody an idea ?
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message