RE: [dom4j-user] Two suggested improvements for dom4j

2004-12-20 Thread David Thielen
-user] Two suggested improvements for dom4j Just to make sure that nobody tries to implement the previous code. The previous code created objects directly which bypasses the dom4j factory and caching mechanisms. Instead of doing it that way, make sure to always use a 'factory' method

Re: [dom4j-user] Two suggested improvements for dom4j

2004-12-20 Thread Edwin Dankert
Just to make sure that nobody tries to implement the previous code. The previous code created objects directly which bypasses the dom4j factory and caching mechanisms. Instead of doing it that way, make sure to always use a 'factory' method to create objects: * Document doc = DocumentHelper.crea

Re: [dom4j-user] Two suggested improvements for dom4j

2004-12-16 Thread Maarten Coene
David Thielen schreef: Hi all; Well, after getting through the Microsoft SpreadsheetML xml format, I’ve found two things I think dom4j could really use. 1. Apparently you can state that white space and cr/lf are part of an element and need to be preserved. So hi there is different

RE: [dom4j-user] Two suggested improvements for dom4j

2004-12-16 Thread David Thielen
Edwin Dankert Sent: Monday, December 13, 2004 11:14 AM To: David Thielen Cc: [EMAIL PROTECTED] Subject: Re: [dom4j-user] Two suggested improvements for dom4j You create your document in memory ??? If this is the case, you can use text to correctly format your text and use different output formats to c

RE: [dom4j-user] Two suggested improvements for dom4j

2004-12-16 Thread David Thielen
Cc: [EMAIL PROTECTED] Subject: Re: [dom4j-user] Two suggested improvements for dom4j Hello David, As far as I know, this functionality is already available ... > 1. Apparently you can state that white space and cr/lf are part of an > element and need to be preserved. So hi here > is differen

Re: [dom4j-user] Two suggested improvements for dom4j

2004-12-13 Thread Edwin Dankert
Hello David, As far as I know, this functionality is already available ... > 1. Apparently you can state that white space and cr/lf are part of an > element and need to be preserved. So hi here > is different from hi there. And in > this case, there needs to be: > > a. A way to create these

Re: [dom4j-user] Two suggested improvements for dom4j

2004-12-13 Thread Edwin Dankert
You create your document in memory ??? If this is the case, you can use text to correctly format your text and use different output formats to change the way the output is written. * Element data = new DefaultElement( "Data"); Element font = new DefaultElement( "Font"); font.add( new DefaultText( "