Skip to Content
Real World XML
book

Real World XML

by Steven Holzner
January 2003
Beginner to intermediate content levelBeginner to intermediate
1200 pages
23h 42m
English
Peachpit Press
Content preview from Real World XML

Tables

You can also create tables in WML, using markup that matches the HTML <table>, <tr> , and <td> elements (there are no <th>, <tbody>, <thead>, or <tfoot> elements). Here's an example—note how closely this resembles an HTML table:

Listing . ch20_14.wml
 
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 2.0//EN"
    "http://www.wapforum.org/dtd/wml20.dtd" >
<wml>
    <card id="Card1" title="Tables">
        <p align="center"><b>Tables</b></p>
        <p align="center">
            <table columns="3">
					<tr>
					<td>TIC</td>
					<td>TAC</td>
					<td>TOE</td>
					</tr>
					<tr>
					<td>x</td>
					<td>o</td>
					<td>x</td>
					</tr>
					<tr>
					<td>o</td>
					<td>x</td>
					<td>o</td>
					</tr>
					<tr>
					<td>x</td>
					<td>o</td>
					<td>x</td>
					</tr>
					</table>
        </p>
    </card>
</wml>

You can see the results of this WML in Figure 20-13 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Inside XML

Inside XML

Steven Holzner
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0735712867Purchase book