Im using CubeGallery3D, that stores with XML files.
The XML structure looks like this: http://pastebin.com/peMxcmYb
I would like to append:
<thumbnail preview="This is Preview" previewURL="This is URL" thumb="This is Thumb">
<title><![CDATA[This is Title]]></title>
<discription><![CDATA[This is Description]]></discription>
</thumbnail>
To the XML file, with PHP.
I have started out with this:
$xmldoc = new DOMDocument();
$xmldoc->load('/theme1157/sample.xml');
to load the sample.xml.
Can someone show me how I can create a <thumbnail>
element in the file and add parameter + values to it like the above example?