3 $sxe = new SimpleXMLElement('<image-definition />');
4 $sxe->addChild('path', 'some/path/to/my.file');
5 $sxe->addChild('options');
6 $sxe->options
->addChild('paddingbottom', 1);
7 var_dump((string)$sxe->path
);
8 var_dump((string)$sxe->options
->paddingbottom
);