Currently for XML raw there is support for a header but that comes before the root in this code

  if ($header) {
    $xml .= $header . "\n";
  }
  $xml .= "<$root>\n";
  foreach ($rows as $row) {

It would be nice if the module in addition to the header supported common elements (xml elements that are in the root and common to the feed, so the code above would become something like

  if ($header) {
    $xml .= $header . "\n";
  }
  $xml .= "<$root>\n";
  if ($common) {
    $xml .= $common . "\n";
  }
  foreach ($rows as $row) {

Comments

Alexander Allen’s picture

Assigned: Unassigned » Alexander Allen
Issue tags: +API change
Alexander Allen’s picture

Issue tags: -API change +#VDS-A

Postponed. Please refer to #1699368.

Alexander Allen’s picture

Status: Active » Postponed
kenorb’s picture

Assigned: Alexander Allen » Unassigned
Issue summary: View changes