Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1600

Cannot render XML from page templates: XML declaration and namespaces are removed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7
    • Fix Version/s: 5.0.8
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Rather than HTML, I want my page to return XML (it's an Atom feed).
      I want this:

      <?xml version="1.0" encoding="UTF-8"?>
      <feed xmlns="http://www.w3.org/2005/Atom">...</feed>

      But the response is being rendered like this:

      <feed>...</feed>

      There are two issues:

      • The XML declaration is missing
      • The Atom namespace is being stripped from the <feed> element

        Attachments

        1. namespace-support-594707.diff
          47 kB
          Fernando Padilla
        2. namespace-support-591544.diff
          48 kB
          Fernando Padilla
        3. namespace-support-586974.diff
          47 kB
          Fernando Padilla

          Issue Links

            Activity

              People

              • Assignee:
                hlship Howard M. Lewis Ship
                Reporter:
                david_peterson David Peterson
              • Votes:
                12 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: