title: Write several elments to XML by VTD-XML
body: <p>I want to write several elements inside one parent and I have the following code:</p>
  
  <pre><code>public void writeElement(String parent, String element, String content) {
      try {
          xmlModifier.bind(vtdNav);
          vtdNav.toElement(VTDNav.FC, parent);
          xmlModifier.insertAfterHead("&lt;" + element + "&gt;" + content + "&lt;/" + element + "&gt;");
          xmlModifier.output(filepath);
      } catch (ModifyException | NavException | IOException | TranscodeException e) {
          e.printStackTrace(); 
      }
  }
  </code></pre>
  
  <p>and calling method:</p>
  
  <pre><code> @FXML
  public void save() {
      String surname = surnameField.getText();
      String name = nameField.getText();
      String patronymic = patronymicField.getText();
      String id = idField.getText();
      String diagnosis = diagnosisArea.getText();
      String comments = commentsArea.getText();
  
      dbFile = DBFile.setDoc(dbDir + dbChoiceBox.getValue(), false);
      dbFile.writeElement("db", "patient", "");
      dbFile.writeElement("patient", "surname", surname);
      dbFile.writeElement("patient", "name", name);
      dbFile.writeElement("patient", "patronymic", patronymic);
      dbFile.writeElement("patient", "id", id);
      dbFile.writeElement("patient", "diagnosis", diagnosis);
      dbFile.writeElement("patient", "comments", comments);
  }
  </code></pre>
  
  <p>but instead this result:</p>
  
  <pre><code>&lt;db&gt;
  &lt;patient&gt;
  &lt;surname&gt;&lt;/surname&gt;
  &lt;name&gt;&lt;/name&gt;
  ...
  &lt;/patient&gt;
  &lt;/db&gt;
  </code></pre>
  
  <p>I have only this:</p>
  
  <pre><code>&lt;db&gt;
  &lt;patient&gt;
  &lt;comments&gt;&lt;/comments&gt;
  &lt;/patient&gt;
  &lt;/db&gt;
  </code></pre>
  
  <p>It looks like <code>writeElement</code> rewrite the same element each time. Why this is happening and how can I fix it?</p>