[jdom-interest] possible bug in removeContent()

Richard Cook rpc at prismtechnologies.com
Thu Jul 12 12:46:24 PDT 2001

I think I was getting mixed up having just read the Canonical xml document
("All consecutive characters are placed into a single text node") alongside
the xml spec, and looking at the behaviour of addContent(). it would be hard
to enforce generally too!

-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]On
Behalf Of Brett McLaughlin
Sent: 12 July 2001 18:21
To: jdom-interest
Subject: Re: [jdom-interest] possible bug in removeContent()

> prints:
> ...t1
> ...t2
> Should the consecutive text nodes be merged as per xml spec like when you
> addContent(), ie should the output be "...t1t2"

Where is this per the XML spec?

I see this as correct behavior, even more so when we have a Text node, which
is coming soon. Now if we had some sort of normalize() behavior, like DOM,
then maybe put them together, but I don't think it should happen


To control your jdom-interest membership:

More information about the jdom-interest mailing list