Allows to get the number of constraints that have been configured for the particular node.
- Parameters:
-
| dtd | The reference to the DTD document. |
| nodeName | The name of the node that is being asked for its constraints. |
- Returns:
- 0 or the number of contraints. The function return -1 if any of the parameter received is null.