private void extractNodes(){
  Map<String,Node> xfaNodes=extractXFANodes(domDocument);
  if (xfaNodes.containsKey("template")) {
    templateNode=xfaNodes.get("template");
  }
  if (xfaNodes.containsKey("datasets")) {
    datasetsNode=xfaNodes.get("datasets");
    Node dataNode=findDataNode(datasetsNode);
    datasetsSom=new Xml2SomDatasets(dataNode != null ? dataNode : datasetsNode.getFirstChild());
  }
  if (datasetsNode == null)   createDatasetsNode(domDocument.getFirstChild());
}

private void extractNodes ( ) { Map < String , Node > xfaNodes = extractXFANodes ( domDocument ) ; if ( xfaNodes . containsKey ( "template" ) ) { templateNode = xfaNodes . get ( "template" ) ; } if ( xfaNodes . containsKey ( "datasets" ) ) { datasetsNode = xfaNodes . get ( "datasets" ) ; Node dataNode = findDataNode ( datasetsNode ) ; datasetsSom = new Xml2SomDatasets ( dataNode != null ? dataNode : datasetsNode . getFirstChild ( ) ) ; } if ( datasetsNode == null ) createDatasetsNode ( domDocument . getFirstChild ( ) ) ; }
extracts the nodes from the domdocument .
