Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1700

Enable pretty formatting of XML-forms output

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Fix Version/s: 7.x-1.8
    • Component/s: XML Form Builder
    • Labels:
      None

      Description

      I'm using the XML-forms module separate outside the context of the whole Islandora package or FC. So I'm not sure how this influences (if at all) Islandora itself.

      Our use case is that we are directly using the output of Islandora XML forms. Using saveXML(). We are also sometimes viewing this output in a text editor, we would like to enable pretty formatting .

      $xml_form = new XMLForm($form_state);
      $document = $xml_form->submit($form, $form_state);
      $document->saveXML()

      A PR has been submitted here:
      https://github.com/Islandora/islandora_xml_forms/pull/223

        Attachments

          Activity

            People

            • Assignee:
              p.vanschayck Paul van Schayck
              Reporter:
              p.vanschayck Paul van Schayck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: