getkirby-v2 / toolkit

This is the deprecated toolkit for Kirby v2.
http://getkirby.com
81 stars 50 forks source link

XML Node Attributes Enhancement #102

Closed niccross closed 8 years ago

niccross commented 9 years ago

Enhanced the way XML is generated from xml::create()

The array that is passed can now add attributes to the xml nodes through array key @attributes, which utilizes the html::attr() method. Additionally, the logic for CDATA wrappers in improved so that you don't double wrap content that already contains the CDATA wrapper. This enhancement will also render a self-closed node when child nodes are not present.

bastianallgeier commented 8 years ago

:+1: