XMLµÚÒ»¿Î
HTML.htmlÎļþ
<div align="center" class="style1">
<p>±ù¹÷Áбí</p>
<p></p>
<table width="400" border="1">
<tr>
<th scope="col"><font size="4">Æ·ÅÆ</font></th>
<th scope="col"><font size="4">ζµÀ</font></th>
<th scope="col"><font size="4">¼Û¸ñ</font></th>
<th scope="col"><font size="4">Éú²ú³§ÉÌ</font></th>
</tr>
<tr>
<td><font size="3">´óºì¹û</font></td>
<td><font size="3">ÖÐ</font></td>
<td><font size="3">1.0</font></td>
<td><font size="3">IBM</font></td>
</tr>
<tr>
<td><font size="3">Ë«°ô</font></td>
<td><font size="3">²î</font></td>
<td><font size="3">0.6</font></td>
<td><font size="3">±±±ùÑó¹ú¼ÊÀäÒûÑо¿ÖÐÐÄ</font></td>
</tr>
<tr>
<td><font size="3">ÃÎÁú</font></td>
<td><font size="3">ºÃ</font></td>
<td><font size="3">3.0</font></td>
<td><font size="3">Microsoft</font></td>
</tr>
</table>
</div>
HTML2
Ïà¹ØÎĵµ£º
using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;
using FilmOnLine.Model;
namespace FilmOnLine.DAL
{
public static class FilmService
{
/// <summary>
/// Ìí¼ÓµçÓ°
/// </summary ......
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£
Ó¦¸ÃÕÆÎյĻù´¡ÖªÊ¶£º
ÔÚÄú¼ÌÐøѧϰ֮ǰ£¬ÐèÒª¶ÔÒÔÏÂ֪ʶÓлù±¾µÄÁ˽⣺
HTML / XHTML
JavaScript or VBScript
ʲôÊÇXML?
XMLÖ¸¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£¨EXtensible Markup Language£©
XMLÊÇÒ»Ö ......
ÒÑÖªÓÐÒ»¸öXMLÎļþ£¨bookstore.xml£©ÈçÏ£º
<?xml version="1.0" encoding="gb2312"?>
<bookstore>
<book genre="fantasy" ISBN="2-3631-4">
<title>Oberon's Legacy</title>
<author>Corets, Eva</author>
<price>5.95</price>
</book>
</booksto ......
½ñÌìµÄÏîÄ¿Ä£¿éÖÐÓõ½¸ù¾ÝÊý¾Ý¿âÀïµÄ×ÊÁÏÉú³ÉxmlÎļþ£¬Ö÷Òª²½ÖèÈçÏ£º
£¨1£© Á¬½ÓÊý¾Ý¿â£¬È¡³öÊý¾Ý£»
£¨2£© ´´½¨½áµã£¬Ìí¼Ó×ÓÏ
£¨3£© дÈëÎļþ“test.xml”ÖУ»
¾ßÌå´úÂëÈçÏ£º
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Result ......