Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse JET Guide
Previous Page Home Next Page


Additional XPath Functions


Returns whether an XPath expression returns zero, one or more than one node

Function Summary
minimal arguments Boolean cardinality (XPath expression , String cardinality)
all arguments Boolean cardinality (XPath expression , String cardinality)

Required Arguments
XPath expression an XPath expression that returns some number of nodes
String cardinality Contains any combination of the characters '0', '1' and 'M'.

There are no optional arguments

cardinality(/root/plugin , "1M")

returns true if there are one or more child elements named "plugin" under the top-level node named "root", or false otherwise.

© Copyright IBM Corporation 2000, 2006. All Rights Reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire