Çë½Ìjava½âÎöxml - Java / Web ¿ª·¢
xmlÎĵµ£º
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE sonnet SYSTEM "XmlDomDemo.dtd">
<sonnet type="tfnew21">
<author>
<last-name>Ìì·é</last-name>
<first-name>Èý·å</first-name>
<nationality>±±¹ú</nationality>
<year-of-birth>1980</year-of-birth>
</author>
<title>Ìì·å¸öÈËÊ«¼¯É¢ÎÄ</title>
<text>
<line>ÎÒ°®µÄÈËÑÛ¾¦ÍêÈ«²»ÏñÌ«Ñô£¬</line>
<line>ºìÓëËýµÄ´½Ïà±È£¬Éºº÷¸üºì¡£</line>
</text>
</sonnet>
tdtÎĵµ£º
<!ELEMENT sonnet(author,title?,text)>
<!ATTLIST sonnet type(tfnew21|Petrarchan)"tfnew21">
<!ELEMENT text(line,line)>
<!ELEMENT author(last-name,first-name,nationality,year-of-birth?,year-of-death?)>
<!ELEMENT title(#PCDATA)>
<!ELEMENT last-name(#PCDATA)>
<!ELEMENT first-name(#PCDATA)>
<!ELEMENT nationality(#PCDATA)>
<!ELEMENT year-of-birth(#PCDATA)>
<!ELEMENT line(#PCDATA)>
javaÎĵµ£º
package com.javapp.xml;
import org.apache.xerces.parsers.*;
import org.w3c.dom.*;
public class XmlDomDemo
{
public void parseAndPrint(String uri)
{
Document doc=null;
try
{
DOMParser parser=new DOMParser();
p
Ïà¹ØÎÊ´ð£º
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ã潫²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
ÌâÄ¿£º
ÓÐ1,2,3£¬4,5,6Áù¸öÊý×ÖÅÅÐò£¬ÓÃjava³ÌÐò¼ÆËã³öÅÅÐòµÄÖÖÀà¡£
ÒªÇó£ºÒ»£¬ÒÔ4¿ªÍ·
¶þ£¬2,3²»ÄÜÏàÁÚ
Èý£¬²»ÄÜÒÔ5¿ªÍ·
Ï£Íû´ó¼ÒÄܼ´ ......
tableÔõô°ó¶¨Êý¾Ý¿â£¬²¢ÇÒÓÃJavaScriptʵÏÖ·Ò³¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£JavaScriptÄÜÏòJSPÒ³Ãæ´«µÝ²ÎÊýÂð
Äã˵µÄÎÊÌâÓеãÄǸö¡£¡££¬²»ºÃ»Ø´ð¡£¡£¡£¡£
jspÖÐtableÊÇÐèÒªhtml´úÂëÓëÒ³Ãæ¶Ë»ñÈ¡Êý¾Ý¿â²éѯºóµÄÐÅÏ¢½øÐÐ ......