static void forEach(final NodeList nodeList, final NodeFunction func)
        throws XPathExpressionException
    {
        for (int i = 0, size = nodeList.getLength(); i < size; i++)
        {
            func.execute(nodeList.item(i));
        }
    }
Check name against validity for C++ and Java naming. Warning if not valid.

@param node to have the name checked.
@param name of the node to be checked.
sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/XmlSchemaParser.java