[jdom-interest] my last CDATA comment (I promise)
Kevin Regan
kevinr at valicert.com
Fri Jun 2 14:56:53 PDT 2000
In addition to the output efficiency wins, you win when
inputing the CDATA as well. Please take a look at that
JDOM with CDATA input/output implementation that I mailed
you for proof of this...
--Kevin
>
> Now, you can imagine the huge efficiency hit that the
> second output method causes. We have to (1) create a
> StringBuffer for the new string, (2) look at every character
> in the output against 4 possible restricted characters
> in a switch statement, (3) replace 1 character with 4
> (or 5 for &) characters for each escaped character,
> (4) create a new String from the newly created StringBuffer
> (oh, and (0) call the escape method in the first place).
>
> For the first output we (1) do nothing special. We just
> output the string as is (wrapped in <![CDATA[...]]>).
>
> As for which output is more human readable, I think
> that is obvious.
>
Received: from exchange_1.aretae.com.sg ([203.127.139.88])
by dorothy.denveronline.net (8.9.3/8.9.3) with ESMTP id XAA15709
for <jdom-interest at jdom.org>; Thu, 1 Jun 2000 23:43:43 -0600 (MDT)
Received: by EXCHANGE_1 with Internet Mail Service (5.5.2650.21)
id <MC150QKX>; Fri, 2 Jun 2000 13:50:04 +0800
Message-ID: <B1286B5DFB67D31180E5005004530BB5591D29 at EXCHANGE_1>
From: Lim Thye Chean - SG <thyechean.lim at aretae.com>
To: jdom-interest at jdom.org
Date: Fri, 2 Jun 2000 13:50:04 +0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain
Subject: [jdom-interest] JDOM not double byte enabled
Sender: jdom-interest-admin at jdom.org
Errors-To: jdom-interest-admin at jdom.org
X-BeenThere: jdom-interest at jdom.org
X-Mailman-Version: 2.0beta2
Precedence: bulk
List-Id: JDOM Mailing List for General Issues and Updates <jdom-interest.jdom.org>
Hi, I am now using the pre-beta 4 build and found that it is not compatible
with chinese (big5) characters. All the chinese characters will be displayed
as garbage (???) when we return the result from JSP. Anyway, we are using
Tomcat and it can displayed chinese font well.
Any suggestions?
--
Lim Thye Chean
Director, Research and Development
Aretae Interactive
Received: from exchange_1.aretae.com.sg ([203.127.139.88])
by dorothy.denveronline.net (8.9.3/8.9.3) with ESMTP id XAA15709
for <jdom-interest at jdom.org>; Thu, 1 Jun 2000 23:43:43 -0600 (MDT)
Received: by EXCHANGE_1 with Internet Mail Service (5.5.2650.21)
id <MC150QKX>; Fri, 2 Jun 2000 13:50:04 +0800
Message-ID: <B1286B5DFB67D31180E5005004530BB5591D29 at EXCHANGE_1>
From: Lim Thye Chean - SG <thyechean.lim at aretae.com>
To: jdom-interest at jdom.org
Date: Fri, 2 Jun 2000 13:50:04 +0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain
Subject: [jdom-interest] JDOM not double byte enabled
Sender: jdom-interest-admin at jdom.org
Errors-To: jdom-interest-admin at jdom.org
X-BeenThere: jdom-interest at jdom.org
X-Mailman-Version: 2.0beta2
Precedence: bulk
List-Id: JDOM Mailing List for General Issues and Updates <jdom-interest.jdom.org>
Hi, I am now using the pre-beta 4 build and found that it is not compatible
with chinese (big5) characters. All the chinese characters will be displayed
as garbage (???) when we return the result from JSP. Anyway, we are using
Tomcat and it can displayed chinese font well.
Any suggestions?
--
Lim Thye Chean
Director, Research and Development
Aretae Interactive
Received: from inycmail.inyc.com (112-022.cosmoweb.net [208.223.112.22] (may be forged))
by dorothy.denveronline.net (8.9.3/8.9.3) with ESMTP id NAA13161
for <jdom-interest at jdom.org>; Fri, 2 Jun 2000 13:08:22 -0600 (MDT)
Received: by inycmail.inyc.com from localhost
(router,SLMail V3.2); Fri, 02 Jun 2000 14:50:52 +0100
Received: from dog [12.38.161.71]
by inycmail.inyc.com [208.223.112.22] (SLmail 3.2.3113) with SMTP
id CC8FE07B367E11D49B8600508B9B0FF0
for <Patrick.Dowler at nrc.ca> plus 1 more; Fri, 02 Jun 2000 14:50:52 0100
Message-ID: <00e501bfccc3$bc652ee0$47a1260c at codefab.com>
From: "Josh Flowers" <joshflowers at mac.com>
To: "Patrick Dowler" <Patrick.Dowler at nrc.ca>, <jdom-interest at jdom.org>
References: <Pine.LNX.3.96.1000602134521.18796A-100000 at exeter.exeter.org> <0006021108250F.02294 at kitasoo.hia.nrc.ca>
Subject: Re: [jdom-interest] First impressions and some suggestions
Date: Fri, 2 Jun 2000 14:52:43 -0400
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-SLUIDL: CBABC9EB-387211D4-9B860050-8B9B0FF0
Sender: jdom-interest-admin at jdom.org
Errors-To: jdom-interest-admin at jdom.org
X-BeenThere: jdom-interest at jdom.org
X-Mailman-Version: 2.0beta2
Precedence: bulk
List-Id: JDOM Mailing List for General Issues and Updates <jdom-interest.jdom.org>
> getRawContent ?
> getFullContent ?
> getDefaultContent ?
> getDefaultXMLContentWithAllTheWhiteSpaceIntact? :-)
>
>
getUnmodifiedContent ?
More information about the jdom-interest
mailing list