W3C Document Object Model (DOM)-Introduction

from:http://xml.coverpages.org/dom.html#intro

TheW3CDocumentObjectModelisa"platform-andlanguage-neutralinterfacethatwillallowprogramsandscriptstodynamicallyaccessandupdatethecontent,structureandstyleofdocuments.Thedocumentcanbefurtherprocessedandtheresultsofthatprocessingcanbeincorporatedbackintothepresentedpage."

I:W3C文档对象模型是一个“与平台无关的接口,该接口允许程序和脚本动态访问和更新文档的内容、结构和风格。文档可以进一步处理,处理结果可以合并到已经显示的页面。”

"ThegoaloftheDOMgroupistodefineaprogrammaticinterfaceforXMLandHTML.TheDOMisseparatedintothreeparts:Core,HTML,andXML.TheCoreDOMprovidesalow-levelsetofobjectsthatcanrepresentanystructureddocument.WhilebyitselfthisinterfaceiscapableofrepresentinganyHTMLorXMLdocument,thecoreinterfaceisacompactandminimaldesignformanipulatingthedocument'scontents.DependingupontheDOM'susage,thecoreDOMinterfacemaynotbeconvenientorappropriateforallusers.TheHTMLandXMLspecificationsprovideadditional,higher-levelinterfacesthatareusedwiththecorespecificationtoprovideamoreconvenientviewintothedocument.Thesespecificationsconsistofobjectsandmethodsthatprovideeasierandmoredirectaccessintothespecifictypesofdocuments.KeyindustryplayersareparticipatingintheDOMWorkingGroup,includingeditorsandcontributorsfromArborText,IBM,InsoEPS,JavaSoft,Microsoft,Netscape,Novell,theObjectManagementGroup,SoftQuad,SunMicrosystems,Texcel,andW3C."TheChairoftheW3CDOMWGisLaurenWoodofSoftQuad.

I:DOM工作组的目标是定义一组XML和HTML的编程接口。DOM分为三个部分:核心、HTML和XMl。核心DOM提供了一个低级别的对象集合来表示结构化的文档,虽然这个接口本身能够代表任何HTML或者XML文档,但却能够简约、紧凑的操纵文档内容。按照DOM的用法,核心DOM接口并不适合所有用户。HTML和XML规范提供了附加的、更高级的接口,来为核心规范文档提供更方便的视图。这些规范由对象和方法组成,为访问特定类型的文档提供了更加容易和直接的访问方式。行业的主流人员都参与到DOM工作组,包括从ArborText,IBM,InsoEPS,JavaSoft,Microsoft,Netscape,Novell,theObjectManagementGroup,SoftQuad,SunMicrosystems,Texcel,andW3C来的编辑者和创始人。W3C工作组的Chair是SoftQuad的LaurenWood.

TheDOMspecification"definestheDocumentObjectModel,aplatform-andlanguage-neutralinterfacethatwillallowprogramsandscriptstodynamicallyaccessandupdatethecontent,structureandstyleofdocuments.TheDocumentObjectModelprovidesastandardsetofobjectsforrepresentingHTMLandXMLdocuments,astandardmodelofhowtheseobjectscanbecombined,andastandardinterfaceforaccessingandmanipulatingthem.VendorscansupporttheDOMasaninterfacetotheirproprietarydatastructuresandAPIs,andcontentauthorscanwritetothestandardDOMinterfacesratherthanproduct-specificAPIs,thusincreasinginteroperabilityontheWeb."

I:DOM规范定义了文档对象模型,一个与平台语言无关的接口,允许程序和脚本动态访问和更新内容、结构和文档风格。文档对象模型提供了一个标准的对象集合来表示HMML和XML文档,一个标准的怎样合并这些对象的模型,和一个用来访问和操作他们的标准接口。供应商可以把DOM作为他们专有数据结构和API的接口,也可以作为能够写标准DOM接口而不是特定API的内容,这样增强了Web操作的交互性。

相关推荐