* @throws XPathException
*/
@Override
public void addAll(Sequence other) throws XPathException {
if (!other.isEmpty() && !Type.subTypeOf(other.getItemType(), Type.NODE))
{throw new XPathException("sequence argument is not a node sequence");}
if (Type.subTypeOf(other.getItemType(), Type.NODE))
{addAll((NodeSet) other);}
for (final SequenceIterator i = other.iterate(); i.hasNext();) {
add(i.nextItem());
}