XPath中如何比较不同类型的对象[3]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 superlmj 的 blog

        //neither object to be compared is a node-set

        }else if(neither operand1 nor operand2 is node-set){

             return comparebasic(operand1,operand2,operator);

        }else{

        //in this case, one object is node-set and the other is of basic type.assume operand1 is node-set

            iterator i1 = operand1.iterator();

            while((node1 =i1.next()!=null){

                if(operand2 is number)convert node1 to number as a new object named newoperand1

本文关键:XPath中如何比较不同类型的对象
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top