HTMLSerializer does not produce well-formed XML :(

X-Application Version: 3.1.1
Tamino Version : 3.1.1
Platform : Win2k Professional
WebContainer : IPlanet 6
JDK Version : 1.3.1_02


I’m trying to add items to a select box
dynamically using the HtmlStringParser’s addOption() method (within my custom tag)

It works but the tags are not well formed (ie. they have no end tags).

So, if I surround the generated select box with bdm:edit tags, the HtmlStringParser complains (correctly) that the XML is not well formed.

It seems that the HTMLSerializer class from Xerces
is to blame for this. If I use the XHTMLSerializer, then it works.

I tried to extend the HtmlStringParser, to override the “toHtml()” method, but because the
“root” data member is private, this wasn’t possible.

Any suggestions would be greatly appreciated.

Puny Sen

Any suggestions?

[This message was edited by Harald Wolf on 22 Mar 2002 at 09:22.]

Maybe you can upgrade to X-Application 3.1.2.

We have replace
by the class
and HtmlElement has it’s own implementation
for toHtml, it does not rely Xerces code.


Software AG Germany, Darmstadt


please do not use the (B), (S), (V) icon yourself. These icons are intended to be set by the X-Application development team to flag
(B) accepted Bugs
(S) posted Solutions for a Bug
(V) solved Bugs within a released version.

I´ve changed your Icon to (?).
Thankyou for your understanding.

Regards, Harald

Thanks. I’ve upgraded to 3.1.2 and everything works fine.