posted @ 2006-07-12 20:06 daniel-shen 阅读(241) 评论(0) 推荐(0)
摘要:
定义文档结构。如果DTD是包含在文档中,则需要定义,格式: eg: ----------------------------//说明node节点拥有4个子节点 -------------------... 阅读全文
摘要:
常见节点类型: Node Type Example Processing instruction Element Carlsberg ... 阅读全文
posted @ 2006-07-12 20:06 daniel-shen 阅读(284) 评论(0) 推荐(0)
摘要:
xquery使用函数从xml文档中提取数据。doc()函数用来打开文档doc(“books.xml“)eg:doc("books.xml")/bookstore/book/title doc("books.xml")/bookstore/book[price30 return $x/title其效果等同于doc("books.xml")/bookstore/book[price30 order ... 阅读全文
posted @ 2006-07-12 20:05 daniel-shen 阅读(421) 评论(0) 推荐(0)
摘要:
xpath中节点类型:element 节点(拥有其他节点)attribute 属性节点textnamespaceprocessing-instructioncomment 注解document (root) nodes 整个文档的根节点关系:Parent 父亲节点Children 子节点Siblings 拥有共同父亲节点的节点Ancestors 父亲节点或父亲父亲节点的父亲节点(祖先节点)Des... 阅读全文
posted @ 2006-07-12 20:04 daniel-shen 阅读(236) 评论(0) 推荐(0)
摘要:
声明:or 匹配: 匹配嵌套: do some thing! do some thing! 从xml中取值:排序://多用于循环中.eg:for-each中 条件测试1: do some thing!条件测试2:相当于if...else... 阅读全文
posted @ 2006-07-12 20:04 daniel-shen 阅读(546) 评论(0) 推荐(0)
摘要:
阅读全文
posted @ 2006-07-12 20:03 daniel-shen 阅读(771) 评论(0) 推荐(0)
摘要:
javascript 中this 的用法:1.division element this 指向div2. division element 在此this 指向window对象,若要引用div对象this.event.srcElement;3、用DHTML方式在事件处理函数中使用this关键字:division element 产生的方法同上,但此处的this 指向div4、类定义... 阅读全文
posted @ 2006-07-12 20:03 daniel-shen 阅读(5038) 评论(0) 推荐(0)
摘要:
接口:interface ICollection{ int count{get;} bool IsSynchronized{get;} object SynchRoot{get;} void CopyTo(Array array,int index);}interface IEnumerable{ IEnumerator GetEnume... 阅读全文
posted @ 2006-07-12 20:01 daniel-shen 阅读(270) 评论(0) 推荐(0)
摘要:
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr... 阅读全文
posted @ 2006-07-12 20:00 daniel-shen 阅读(267) 评论(0) 推荐(0)