Bugs item #555549, was opened at 2002-05-13 19:34
Message generated for change (Comment added) made by maartenc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=555549&group_id=16035

Category: None
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Maarten Coene (maartenc)
Summary: 
 added to XML when creating DOM

Initial Comment:
I have DOM4J Document, fill it from db (via 
Element.setText()) and then transform it via XSLT to 
HTML. When I try to output the filled DOM4J Document 
to file via org.dom4j.io.XMLWriter everything is OK.

However, if I try to create DocumentSource for 
javax.xml.transform.Transformer, DOM4J adds 
 
string at the end of each line in a tag that has its 
value on more lines (the value contains <cr><lf>). 

Example:
1)output to file via org.dom4j.io.XMLWriter
<field id="Description" type="textarea">line1
line2</field>

2) when I run Transformer without XSL file:
TransformerFactory tf = TransformerFactory.newInstance
();
Transformer txml = tf.newTransformer();
txml.transform(new DocumentSource(doc), new 
StreamResult(new File(f)));
the output is:
<field id="Description" type="textarea">line1&#13; 
line2&#13;
</field>


The same happens if you try to create DOM object from 
DOM4J Document.

Occured on this configuration: Win2K, J2SE 1.3, DOM4J 
1.3, Xalan 2.3.1.

Mail me for more questions
Honza Miksatko

----------------------------------------------------------------------

>Comment By: Maarten Coene (maartenc)
Date: 2004-06-22 16:59

Message:
Logged In: YES 
user_id=178745

Can't reproduce your problem. Probably already fixed in
dom4j or because I used a more recent version of xalan

Maarten

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=555549&group_id=16035


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to