Re: [dom4j-user] Re: XMLWriter and namespaces

2005-11-07 Thread Robert Koberg
Edwin Dankert wrote: The issue as I understand it is ... Instead of building the model totally in memory and writing it, which could potentially be expensive, the XMLWriter also supports writing the information bit by bit with the bonus that the output can formatted and that characters are subst

Re: [dom4j-user] Re: XMLWriter and namespaces

2005-11-07 Thread Robert Koberg
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 correct

Re: [dom4j-user] Re: XMLWriter and namespaces

2005-11-07 Thread Edwin Dankert
The issue as I understand it is ... Instead of building the model totally in memory and writing it, which could potentially be expensive, the XMLWriter also supports writing the information bit by bit with the bonus that the output can formatted and that characters are substituted. You could acco

RE: [dom4j-user] Re: XMLWriter and namespaces

2005-11-07 Thread Priest, Mark
[mailto:[EMAIL PROTECTED] Sent: Monday, November 07, 2005 10:23 AM To: Robert Koberg Cc: LIST - dom4j user Subject: Re: [dom4j-user] Re: XMLWriter and namespaces It sounds like something that might be very usefull. However, to stream your content, wouldn't it be better to use the SAX speci

Re: [dom4j-user] Re: XMLWriter and namespaces

2005-11-07 Thread Edwin Dankert
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 migh

[dom4j-user] Re: XMLWriter and namespaces

2005-11-06 Thread Robert Koberg
Hi again, What is the best way to write a minimized version of a document that might contain namespaces? In looking at the source of XMLWriter, it shows there is no faqcility to write namespaces the way I am trying to below. Now I am just writing to the servelt output stream, but perhaps the