I personally think number 2 is also not an issue if you construct your
document 'correctly' (using text and element nodes).

Regards,
Edwin 

On Tue, 14 Dec 2004 02:21:39 -0500, David D. Lucas <[EMAIL PROTECTED]> wrote:
> As previously mentioned...
> 
> Item #1 is possible by using the xml construct of xml:space="preserve"
> as an attribute.  Put this on the Data tag like:
> 
> <Data xml:space="preserve">     <Font>hi there</Font>   </Data>
> 
> and it will keep the spaces in the XML like you placed it.
> This can be added programatically by added an attribute to the Data
> Element with the name of xml:space and value of "preserve".
> 
> 
> David Thielen wrote:
> > Hi;
> >
> >
> >
> > I just wanted to make sure item (2) below was still under consideration
> > as a new feature for dom4j.
> >
> >
> >
> > Thanks â dave
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > *From:* David Thielen [mailto:[EMAIL PROTECTED]
> > *Sent:* Monday, December 13, 2004 9:48 AM
> > *To:* [EMAIL PROTECTED]
> > *Subject:* Two suggested improvements for dom4j
> >
> >
> >
> > 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 <Data><Font>hi
> >       there</Font></Data> is different from <Data>    <Font>hi
> >       there</Font>    </Data>. And in this case, there needs to be:
> >          1. A way to create these nodes initially with the spacing.
> >          2. A way to make sure that any XMLWriter type class preserves
> >             it exactly.
> >    2. A way to mark an element's text as final/literal so there is no
> >       translation of any character. So you can give the <Data> element
> >       the text of <Font>hi there</Font> and it does not change the < to
> >       a &lt;, etc.
> >
> > Thanks - dave
> >
> 
> 
> --
> 
> +------------------------------------------------------------+
> | David Lucas                      mailto: ddlucas @ lse.com |
> | Lucas Software Engineering, Inc.   (740) 964-6248 Voice    |
> | Unix,Java,C++,CORBA,XML,EJB        (614) 668-4020 Mobile   |
> | Middleware,Frameworks              (888) 866-4728 Fax/Msg  |
> +------------------------------------------------------------+
> | GPS Location:  40.0150 deg Lat,  -82.6378 deg Long         |
> | IMHC: "Jesus Christ is the way, the truth, and the life."  |
> | IMHC: "I know where I am; I know where I'm going."    <><  |
> +------------------------------------------------------------+
> 
> Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt
> IMHO="in my humble opinion" IMHC="in my humble conviction"
> All trademarks above are those of their respective owners.
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to