2005-10-21

XMLDOM手册

来源: 本站收集整理 作者:佚名 评论 0 条
 

  XMLDOM是用来访问和操作XML文档的编程接口规范。

  1、简介
  XMLDOM被设计为可用于任何语言和任何操作系统。借助DOM,程序员可以创建XML文档、遍历其结构,增、改、删其元素。DOM将整个XML文档视作一棵树,文档级的元素是树的根。

  2、MS的XML解析,IE5.0以上。
  是一个COM组件,至少包含下列对象:
  (1)Micosoft.XMLDOM
  (2)Micosoft.XMLDOM.parseError,有如下属性:

Property Description
errorCode Returns a long integer error code
reason Returns a string explaining the reason for the error
line Returns a long integer representing the line number for the error
linePos Returns a long integer representing the line position for the error
srcText Returns a string containing the line that caused the error
url Returns the url pointing the loaded document
filePos Returns a long integer file position of the error

  (3)Microsoft.XMLHTTP,有如下属性:
Property Description
readyState Returns the state of the document
responseBody Returns the response as an array of unsigned bytes
responseStream Returns the response as an IStream
responseText Returns the response as a string
responseXML Returns the response as an xml document
status Returns the status code as a number
statusText Returns the status as a string
有如下方法:

(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:了解DB2数据库优化的几条策略  
下一篇:用XML和XSL来生成动态页面
    评论加载中…
Property Description
abort() Cancel the current http request
getAllResponseHeaders() Returns the value of the http headers
getResponseHeader(headerName) Returns the value of one specified http header
open(method, url, async, userid, password) Opens http request, and specifies the information
send() Send the http request to the server
setRequestHeader(headerName,headerValue) Specifies the name of a http header
共5页: 上一页 1 [2] [3] [4] [5] 下一页
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号