xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Garbuzov <bo...@keystrokenet.com>
Subject I can not set the table's caption
Date Tue, 04 Apr 2000 21:04:57 GMT

    String tableName = "tableName";
    HTMLTableElementImpl table = new HTMLTableElementImpl ((HTMLDocumentImpl) htmlDocument,
    body.appendChild (table);
    String captionName = "captionName";
    HTMLTableCaptionElementImpl caption = new HTMLTableCaptionElementImpl ((HTMLDocumentImpl)
htmlDocument, captionName);
    table.setCaption (caption);

fails the following way:

java.lang.IllegalArgumentException: HTM016 Argument 'caption' is not an element of type <CAPTION>.
 at org.apache.html.dom.HTMLTableElementImpl.setCaption(HTMLTableElementImpl.java:133)
 at com.keystrokenet.loanproduct.xml.test.HtmlLab.executeTestBody(HtmlLab.java:150)

View raw message