title: creating dynamic xml with php
body: <p>here is my xml code</p>
  
  <p>
      
          
          
          </p>
  
  <pre><code>    &lt;autoLoad value="true"/&gt;
      &lt;autoPlay value="false"/&gt;
      &lt;playContinuously value="true"/&gt;
      &lt;jumpToNextCategory value="false"/&gt;
      &lt;loop value="false"/&gt;
  
      &lt;keepAspectRatio value="true"/&gt;
  
      &lt;volume value="50"/&gt;
      &lt;controlsPadding value="5"/&gt;
  
      &lt;showPreviewImage value="true"/&gt;
      &lt;showShareBtn value="false"/&gt;
      &lt;showHidePlaylistBtn value="false"/&gt;
      &lt;showFullScreenBtn value="true"/&gt;
      &lt;showMiddlePlayBtn value="true"/&gt;
  
      &lt;showWatermark value="true"/&gt;
      &lt;watermarkPos value="BR"/&gt;
  
      &lt;spaceKeyListener value="true"/&gt;
      &lt;clickListener value="true"/&gt;
  
      &lt;playlistSize value="0"/&gt;
      &lt;playlistThumbWidth value="70"/&gt;
      &lt;playlistThumbHeight value="50"/&gt;
      &lt;playlistThumbPadding value="10"/&gt;
  
      &lt;descriptionSize value="0"/&gt;
      &lt;descriptionTextPadding value="10"/&gt;
  &lt;/options&gt;
  
  &lt;colors&gt;
      &lt;playerBackground value="0x000000"/&gt;
      &lt;preloader background="0x000000" bckAlpha="70" text="0xCCCCCC" circle="0x559BB5"/&gt;
      &lt;middlePlayBtn arrowNormal="0xFFFFFF" bckNormal="0x000000" alphaNormal="60" arrowOver="0xFFFFFF" bckOver="0x000000" alphaOver="80" arrowDown="0xFFFFFF" bckDown="0x000000" alphaDown="100"/&gt;
      &lt;controllerBackground value="0x000000"/&gt;
      &lt;controllerButtons normal="0xCCCCCC" over="0xFFFFFF" down="0xFFFFFF"/&gt;
      &lt;volume border="0x666666" background="0x000000" speaker="0xCCCCCC" bar="0x559BB5"/&gt;
      &lt;volumeScrubBtn brdNormal="0xCCCCCC" bckNormal="0x000000" brdOver="0xFFFFFF" bckOver="0x000000" brdDown="0xFFFFFF" bckDown="0x000000" /&gt;
      &lt;progressBar border="0x666666" background="0x000000" elapse="0x559BB5" download="0x999999"/&gt;
      &lt;progressScrubBtn brdNormal="0xCCCCCC" bckNormal="0x000000" brdOver="0xFFFFFF" bckOver="0x000000" brdDown="0xFFFFFF" bckDown="0x000000" /&gt;
      &lt;times value="0xCCCCCC"/&gt;
      &lt;share background="0x000000" bckAlpha="40" boxBck="0x000000" boxBckAlpha="70" labels="0xFFFFFF" errorText="0x00FF00" text="0x000000" textBck="0xFFFFFF" textBrd="0x000000" btnsNormal="0xCCCCCC" btnsOver="0xFFFFFF" btnsDown="0xFFFFFF"/&gt;
      &lt;playlist background="0x151515" line="0x202020" thumbBck="0x000000" thumbNormalAlpha="30" thumbOverAlpha="70" thumbSelectedAlpha="100" title="0x559BB5" description="0xCCCCCC"/&gt;
      &lt;category bckNormal="0x101010" titleNormal="0xCCCCCC" bckOver="0x000000" titleOver="0xFFFFFF" bckSelected="0x559BB5" titleSelected="0x000000"/&gt;
      &lt;description background="0x151515" line="0x202020" title="0xFFFFFF" description="0xCCCCCC"/&gt;
      &lt;scrollBar trackBar="0xCCCCCC" scrubBrdNormal="0xCCCCCC" scrubBckNormal="0x000000" scrubBrdOver="0xFFFFFF" scrubBckOver="0x000000" scrubBrdDown="0xFFFFFF" scrubBckDown="0x000000"/&gt;
  &lt;/colors&gt;
  
  &lt;videos&gt;
      &lt;category title="Animations"&gt;
      &lt;video&gt;
      &lt;videoPath value="video.mp4"/&gt;
      &lt;previewImage value="image.jpg"/&gt;
      &lt;aspectRatio value="4:3"/&gt;
      &lt;totalTime value=""/&gt;
      &lt;watermarkPath value="http://mydomain.com"/&gt;
      &lt;watermarkLink value="http://mydomain.com"/&gt;
      &lt;/video&gt;
      &lt;/category&gt;
  &lt;/videos&gt;
  </code></pre>
  
  <p></p>
  
  <p>in this code i want to change the following dynamically with php</p>
  
  <pre><code>    &lt;videoPath value="video.mp4"/&gt;
      &lt;previewImage value="image.jpg"/&gt;
  </code></pre>
  
  <p>or let me know how can i generate the whole code with php or include in php</p>