一不小心,浪费了不少时间

If the navigator is not currently positioned on an element, this method returns false.
After a successful call to MoveToAttribute, the LocalName, NamespaceURI and Prefix properties reflect the values of the attribute. When the navigator is positioned on an attribute, the methods MoveToNext, MoveToPrevious, and MoveToFirst are not applicable. These methods always return false and do not change the position of the navigator. Rather, you can call MoveToNextAttribute to move to the next attribute node.
Once positioned on an attribute, you can call MoveToParent to move to the owner element.
详见:XPathNavigator.MoveToAttribute Method
在调用了MoveToAttribute后,MoveToAttribute、MoveToFirstAttribute也都不能调用了,除非在调用之前先MoveToParent,这就意味着MoveToNextAttribute隐式调用了MoveToParent?在这里我犯了一个小小的错误,想当然的就调用了MoveToFirstAttribute,结果浪费了不少时间。
“定位到一个属性后,在调用那个方法,应该是在寻找这个属性的属性了吧,当然找不到啦”
posted on 2003-12-30 15:17:00 by hxinyu 评论(1) 阅读(426)
?昨天,陪朋友买了台TabletPc,好家伙,真是够酷够炫的,不过说老实话,我不太喜欢这玩意儿。一是9980块的价格,再添几个子儿可以买台Ibm ThinkPad了;二是我太喜欢触摸键盘的感觉,那才叫一个亲切。
今天,在