code: public void mergeXfaData(Node n) throws IOException, DocumentException {
          XfaForm.Xml2SomDatasets data = new XfaForm.Xml2SomDatasets(n);
          for (Iterator it = data.getOrder().iterator(); it.hasNext();) {
              String name = (String)it.next();
              String text = XfaForm.getNodeText((Node)data.getName2Node().get(name));
              setField(name, text);
          }
      }
docs: Merges an XML data structure into this form.
  
  @param n the top node of the data structure
  @throws java.io.IOException on error
  @throws com.lowagie.text.DocumentException o error