The following code configures OpenNI using an XML file, and then makes sure the nodes it needs exist: