With the upcoming release of Symphony 2.2.2 (see the thread), XMLElement
has been given some love with some a couple of new methods to help make working with XMLElement
easier for developers. XMLElement
's biggest shortcoming previously had been the lack of methods to manipulate the children of an XMLElement
, often resulting in some pretty head-slapping moments. No more, we've got five new methods to make this a breeze, getChildrenByName
, removeChildAt
, insertChildAt
, replaceChildAt
and setChildren
.
For the purposes of this quick tip, we'll use the following DOM structure.
<div>
Hello World