Code To Create a Neural Network and Store Results to XML