「チュートリアル:XMLの概要-2」の編集履歴(バックアップ)一覧に戻る
チュートリアル:XMLの概要-2」を以下のとおり復元します。
<table border="1">
<tbody>
<tr>
<td>&lt;widget version="1.6.7" minimumVersion="1.7"&gt;<br>
[...]<br>
&lt;/widget&gt;</td>
</tr>
<tr>
<td>An XML tag always has a partner which closes it (thusly telling the parser
to stop<br>
reading code for that particular element). For example, if you have an
&lt;image&gt; tag,<br>
you must close it using a corresponding &lt;/image&gt; tag. You can nest tags
as well (and<br>
this is required in the case of both HTML and XML), like so:<br></td>
</tr>
<tr>
<td>&lt;widget&gt;<br>
&lt;image&gt;<br>
&lt;src&gt;Images/My Great Image.png&lt;/src&gt;<br>
&lt;hOffset&gt;74&lt;/hOffset&gt;<br>
&lt;opacity&gt;85%&lt;/opacity&gt;<br>
&lt;/image&gt;<br>
&lt;/widget&gt;<br></td>
</tr>
<tr>
<td>Alternately, you can identify most of your attributes using this format,
and end the tag<br>
with /&gt;:<br></td>
</tr>
<tr>
<td>&lt;widget&gt;<br>
&lt;image<br>
src="Images/My Great Image.png"<br>
hOffset="74"<br>
opacity="85%"<br>
/&gt;<br>
&lt;/widget&gt;<br></td>
</tr>
<tr>
<td>You can also mix and match (but don't use "/&gt;" in this case):<br></td>
</tr>
<tr>
<td>&lt;widget&gt;<br>
&lt;image src="Images/My Great Image.png"&gt;<br>
&lt;hOffset&gt;74&lt;/hOffset&gt;<br>
&lt;opacity&gt;85%&lt;/opacity&gt;<br>
&lt;/image&gt;<br>
&lt;/widget&gt;<br></td>
</tr>
<tr>
<td>Anyway, the point we're trying to make is that you make sure all your
opening tags are<br>
closed correctly (and spelled correctly on both the opening and closing tags
when<br>
applicable) so you don't get weird errors when you try to run your Widget! If
you have<br>
one letter out of place or mistyped in a tag, Konfabulator will get confused.
These<br>
computers are so darn picky!<br></td>
</tr>
</tbody>
</table>

復元してよろしいですか?

目安箱バナー