// foo; the latter is true if and only if all nodes in $x have
// the string-value foo.
NodeIterator list1 = nodeset();
NodeIterator list2 = ((XNodeSet) obj2).nodeset();
Node node1;
StringVector node2Strings = null;
while (null != (node1 = list1.nextNode()))
{
String s1 = getStringFromNode(node1);
if (null == node2Strings)
{
Node node2;
while (null != (node2 = list2.nextNode()))
{
String s2 = getStringFromNode(node2);
if (comparator.compareStrings(s1, s2))
{
result = true;
break;
}
if (null == node2Strings)
node2Strings = new StringVector();
node2Strings.addElement(s2);
}
}
else
{
int n = node2Strings.size();
for (int i = 0; i < n; i++)
{
if (comparator.compareStrings(s1, node2Strings.elementAt(i)))
{
result = true;
break;
}