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
Code

    String tableName = "tableName";
    HTMLTableElementImpl table = new HTMLTableElementImpl ((HTMLDocumentImpl) htmlDocument,
tableName);
    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)



Mime
View raw message