Let's use format_xml_elements to output an array in writeElement() instead of our custom code. This will help support more advanced elements and output without messing up the results.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 2387557-support-advanced-element-output.patch | 8.22 KB | dave reid |
| #9 | 2387557-support-advanced-element-output.patch | 8.22 KB | dave reid |
| #8 | 2387557-support-advanced-element-output.patch | 6.36 KB | dave reid |
| #2 | 2387557-format-xml-elements.patch | 1.15 KB | dave reid |
| #1 | 2387557-format-xml-elements.patch | 1.3 KB | dave reid |
Comments
Comment #1
dave reidComment #2
dave reidFinal version.
Comment #3
dave reidCommitted to 7.x-2.x and 6.x-2.x.
Comment #4
dave reidComment #7
dave reidLooks like this is no longer quite so easy with D8: https://www.drupal.org/node/2468139
Comment #8
dave reidComment #9
dave reidComment #10
dave reidMy solution for now is just to copy format_xml_elements() and shove it into XmlSitemapWriter. It works for what we need, and we can re-evaluate doing something better.
Comment #12
dave reidComment #14
dave reidCommitted #12 to 8.x-1.x.