Robert Koberg
Mon, 07 Nov 2005 10:30:51 -0800
Edwin Dankert wrote:
It sounds like something that might be very usefull. However, to stream your content, wouldn't it be better to use the SAX specific startElement and endElement methods? They look like a nicer solution to me, however (looking at the code) also do not handle namespaces correctly but fixing this might be easier than fixing the dom4j specific writeOpen and writeClose methods?
I used the XMLWriter because it seemed pretty simple. Currently, I just using the ServletOutputStream to print out similar to the way the XMLWriter does it. This gets sent to the browser for a client side transformation.
Off topic: One strange thing however, if I send: <elem> <child/> <child/> <child/> </elem>it shows up to the browser transformation (both IE and Firefox/Transformix) as:
<elem>
<child/>
<child>
<child/>
</child>
</elem>
If I alert the XML it is formed as I sent. I /fixed/ it by adding a
space before all empty element end tags (does not matter for my needs).
Don't know what the deal is, but just thought I would share just in case.
best, -Rob
Regards, Edwin -- http://www.edankert.com/
------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user