public void getOutputs(Document NNetMap) throws JDOMException {
   Erudite_gui.output = new double[Erudite_gui.outputNID.length];
   int oN = 0;
   do {
     String outNodeID = Erudite_gui.outputNID[oN];
     Element outNode =
         (Element)
             XPath.selectSingleNode(
                 Erudite_gui.NNetMap, "/NNETWORK/SUBNET/LAYER/NEURODE[@N_ID='" + outNodeID + "']");
     Erudite_gui.output[oN] = java.lang.Double.parseDouble(outNode.getAttributeValue("ACTIVITY"));
     oN++;
   } while (oN < Erudite_gui.output.length);
 }
  private void loadInputs(Document NNetMap) {
    try {
      // use XPath to find all synapse elements recieving input data
      int iN = 0;
      do {
        String inNodeID = Erudite_gui.inputNID[iN];
        Element inNode =
            (Element)
                XPath.selectSingleNode(
                    Erudite_gui.NNetMap,
                    "/NNETWORK/SUBNET/LAYER/NEURODE[@N_ID='" + inNodeID + "']");
        inNode.setAttribute("ACTIVE", "1");
        inNode.setAttribute("ACTIVITY", String.valueOf(Erudite_gui.input[iN]));
        iN++;
      } while (iN < Erudite_gui.input.length);

    } catch (Exception e) {
      e.printStackTrace();
    }
  }