You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Wei Cheng <We...@baylor.edu> on 2000/11/04 21:24:57 UTC

Re[2]: Xpath question about NodeSet .contains() function

  Can somebody give me idea to compare with the Node's text value
  using existing function?


Dlc> Wei Cheng was asking about an internal-only contains() function.
Dlc> Where the code says
>> if (ns2.contains(n))    // in my case because the name[2]
>> //firstname is the same as name[1], so has duplicate node
>> // "David" for firstname  but cann't find duplicate node
Dlc> there appears to be some confusion between a node and its text
Dlc> content. There are two different nodes that contain "David"
Dlc> as text.
Dlc> .................David Marston



Best regards,
 Wei                            mailto:Wei_Cheng@baylor.edu