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
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

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

  




 

 

Eclipse JET Guide
Previous Page Home Next Page

cardinality()

Additional XPath Functions

cardinality

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
 

Example
 
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