XMLStevenHolzner,SamsTeachYourselfXMLin21Days,<HTML><HEAD><TITLE>HelloFromHTML</TITLE></HEAD><BODY><CENTER><H1>AnHTMLDocument</H1></CENTER>ThisisanHTMLdocument!</BODY></HTML>标记是文档中数据的描述和解释3XMLeXtensibleMarkupLanguage元语言,创建标记语言的语言4<?xmlversion=“”?><PersonListType=“Student”Date=“2002-02-02”><TitleValue=“StudentList”/><Person>………</Person><Person>………</Person></PersonList>ElementsarenestedRootelementcontainsallothersElement(ortag)namesExampleelementsRootelementEmptyelementattributesdeclaration5MoreTerminology<PersonName=“John”Id=“111111111”>Johnisanicefellow<Address><Number>21</Number><Street>MainSt.</Street></Address>………</Person>OpeningtagClosingtag:WhatisopenmustbeclosedNestedelement,childofPersonParentofAddress,Ancestorofnumber“standalone”text,notusefulasdataChildofAddress,DescendantofPersonContentofPerson6IE中浏览XML文档7AnXMLDocumentUsingaStyleSheet<?xmlversion=""?><?xml-stylesheettype="text/css"href=""?><PersonListType="Student"Date="2002-02-02"><TitleValue="StudentList"/><PersonName="John"Id="111111111"> Johnisanicefellow <Address><Number>21</Number><Street>MainSt.</Street> </Address> ...</Person><Person>...</Person></PersonList>{display:block;font-size:18pt;color:#0000ff;text-align:left}9使用JavaScript抽取数据<?xmlversion=""encoding="UTF-8"?><?xml-stylesheettype="text/css"href=""?><document><heading>HelloFromXML</heading><message>ThisisanXMLdocument!</message></document>10
分布式系统-XML 来自淘豆网m.daumloan.com转载请标明出处.