IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

HTMLSerializer does not produce well-formed XML :(

  • 1.  HTMLSerializer does not produce well-formed XML :(

    Posted Thu March 21, 2002 09:44 PM

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

    Hi,

    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.

    Thanks,
    Puny Sen


    Any suggestions?

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


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: HTMLSerializer does not produce well-formed XML :(

    Posted Fri March 22, 2002 09:27 AM

    Maybe you can upgrade to X-Application 3.1.2.

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


    Michael

    Software AG Germany, Darmstadt


    #webMethods
    #API-Management
    #Tamino


  • 3.  RE: HTMLSerializer does not produce well-formed XML :(

    Posted Fri March 22, 2002 09:56 AM

    Hello,

    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


    #webMethods
    #Tamino
    #API-Management


  • 4.  RE: HTMLSerializer does not produce well-formed XML :(

    Posted Sat March 23, 2002 06:05 PM

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


    #API-Management
    #webMethods
    #Tamino