code: private void extractNodes() {
          Node n = domDocument.getFirstChild();
          while (n.getChildNodes().getLength() == 0) {
          	n = n.getNextSibling();
          }
          n = n.getFirstChild();
          while (n != null) {
              if (n.getNodeType() == Node.ELEMENT_NODE) {
                  String s = n.getLocalName();
                  if (s.equals("template")) {
                  	templateNode = n;
                      templateSom = new Xml2SomTemplate(n);
                  }
                  else if (s.equals("datasets")) {
                      datasetsNode = n;
                      datasetsSom = new Xml2SomDatasets(n.getFirstChild());
                  }
              }
              n = n.getNextSibling();
          }
      }
docs: Extracts the nodes from the domDocument.
  @since	2.1.5