Hi Dominik

The patch for the bug you found have made it into the new 1.2 release of
dom4j. Thanks for spotting this!

James
----- Original Message -----
From: "James Strachan" <[EMAIL PROTECTED]>
To: "Actor630" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 11:45 AM
Subject: Re: [dom4j-user] CDATA output in HTML


> Hi Dominik
>
> You've just spotted a bug in the HTMLWriter. Some time ago a fix was
applied
> to XMLWriter for handling flushing properly which accidentally broke the
> CDATA writing behaviour of HTMLWriter. I've patched the code now and it
> should now be working properly.
>
> I've added your use case as a JUnit test case
> (dom4j/src/test/org/dom4j/TestHTMLWriter.java) which now works correctly.
> These changes are in CVS. Hopefully the daily build will be fixed soon and
> this fix will make it in there...
>
> James
> ----- Original Message -----
> From: "Actor630" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 14, 2002 7:19 AM
> Subject: [dom4j-user] CDATA output in HTML
>
>
> > Hello,
> >
> > I'm trying to produce an output in pure HTML but there is always CDATA
in
> my
> > output.
> >
> > This is the output of my code:
> > <html>
> >   <body><![CDATA[First&nbsp;test]]></body>
> > </html>
> >
> > Here is the output I want:
> > <html>
> >   <body>First&nbsp;test</body>
> > </html>
> >
> >
> > import java.io.OutputStream;
> > import org.dom4j.*;
> > import org.dom4j.io.*;
> >
> > public class CreateHtml
> > {
> >  public static void main(String[] arguments) throws Exception
> >  {
> >   CreateHtml start = new CreateHtml();
> >   start.create(System.out);
> >  }
> >  private void create(OutputStream out) throws Exception
> >  {
> >   HTMLWriter writer = new HTMLWriter(out);
> >   Document document = DocumentHelper.createDocument();
> >
> >   Element body = document.addElement("html").addElement("body");
> >   body.addCDATA("First&nbsp;Test");
> >   writer.write(document);
> >  }
> > }
> >
> > kindly regards
> > Dominik Deimling
> >
> >
> >
> >
> > _______________________________________________
> > dom4j-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/dom4j-user
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to