Added support for validating XML nodes.