讀了很多關(guān)于.net的文章,也看了許多關(guān)于xml的資料,我已經(jīng)深深的被他們的魅力所吸引。在網(wǎng)上的論壇中,大家對于.net的討論更加火熱一些,而我們的同事告訴我,其實(shí)xml是一個(gè)比.net更好的東西。包括其中的xslt,其未來要遠(yuǎn)遠(yuǎn)比.net要好。 其實(shí)爭論誰好誰壞本身是沒有多大意思的,因?yàn)?net本身已經(jīng)和xml緊密的結(jié)合在一起了。這里我就用xml代替數(shù)據(jù),寫一個(gè)新聞發(fā)布系統(tǒng),希望能夠起到拋磚引玉的作用,使更多的人能夠了解這些最新的技術(shù)。 下面介紹這幾個(gè)文件。 </P><P>contents.xml <?xml version="1.0" encoding="GB2312"?> <topiclist type="AspCool News"> <topic> <title>aspcool news!</title> <href>main.aspx?name=hello</href> </topic> <topic> <title>Resolve a problem</title> <href>main.aspx?name=test</href> </topic> </topiclist> </P><P>這是一個(gè)很簡單的xml文件,它的作用是用來顯示新聞的列表。 </P><P>hello.xml </P><P><?xml version="1.0" encoding="GB2312"?> <document> <title>aspcool news!</title> <abstract>test news</abstract> <author>feiying</author> <content> <paragraph>The firet test</paragraph> </content> </document> </P><P>
|