作者:趣趣虎 来源:www.ququhu.com 时间:2007-09-05
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 |
| 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 |
(4)Node的类型
| nodeType | Named Constant | nodeTypeString | nodeName | nodeValue |
|---|---|---|---|---|
| 1 | ELEMENT_NODE | element | tagName | null |
| 2 | ATTRIBUTE_NODE | attribute | name | value |
| 3 | TEXT_NODE | text | #text | content of node |
| 4 | CDATA_SECTION_NODE | cdatasection | #cdata-section | content of node |
| 5 | ENTITY_REFERENCE_NODE | entityreference | entity reference name | null |
| 6 | ENTITY_NODE | entity | entity name | null |
| 7 | PROCESSING_INSTRUCTION_NODE | processinginstruction | target | content of node |
| 8 | COMMENT_NODE | comment | #comment | comment text |
| 9 | DOCUMENT_NODE | document | #document | null |
| 10 | DOCUMENT_TYPE_NODE | documenttype | doctype name | null |
| 11 | DOCUMENT_FRAGMENT_NODE | documentfragment | #document fragment | null |
| 12 | NOTATION_NODE | notation | notation name | null |
文章关键字:手册 the newNode Returns node xmlDoc.createElement
上一篇:论Asp与XML的关系 下一篇:XML入门问答
165 * 70 广告位招租
联系QQ:349881211
联系QQ:349881211
165 * 60 广告位招租
联系QQ:349881211
联系QQ:349881211
网友发表评论:
热点文章
·在关系数据库中存储XML数据
·基于XML的三层C/S模型
·XML Schema教程
·XML 如何推动下一代信息共享应用程序
·TrackBack 技术规范
·论Asp与XML的关系
·XML入门问答
·用XML和XSL来生成动态页面
·用XSLT把XML的数据输入数据库
·XSL-FO 学习笔记
·建立MSXML 测试环境
·XML加ASP实现网页“本地化”
·基于XML的三层C/S模型
·XML Schema教程
·XML 如何推动下一代信息共享应用程序
·TrackBack 技术规范
·论Asp与XML的关系
·XML入门问答
·用XML和XSL来生成动态页面
·用XSLT把XML的数据输入数据库
·XSL-FO 学习笔记
·建立MSXML 测试环境
·XML加ASP实现网页“本地化”
相关文章
·论Asp与XML的关系
·XML入门问答
·在关系数据库中存储XML数据
·用XML和XSL来生成动态页面
·基于XML的三层C/S模型
·用XSLT把XML的数据输入数据库
·XML Schema教程
·XSL-FO 学习笔记
·XML 如何推动下一代信息共享应用程序
·建立MSXML 测试环境
·TrackBack 技术规范
·XML加ASP实现网页“本地化”
·XML入门问答
·在关系数据库中存储XML数据
·用XML和XSL来生成动态页面
·基于XML的三层C/S模型
·用XSLT把XML的数据输入数据库
·XML Schema教程
·XSL-FO 学习笔记
·XML 如何推动下一代信息共享应用程序
·建立MSXML 测试环境
·TrackBack 技术规范
·XML加ASP实现网页“本地化”
相关连接
相关连接
图片连接


