Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 519413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:02:19+00:00 2026-05-13T08:02:19+00:00

here is my xml code <autoLoad value=true/> <autoPlay value=false/> <playContinuously value=true/> <jumpToNextCategory value=false/> <loop

  • 0

here is my xml code

    <autoLoad value="true"/>
    <autoPlay value="false"/>
    <playContinuously value="true"/>
    <jumpToNextCategory value="false"/>
    <loop value="false"/>

    <keepAspectRatio value="true"/>

    <volume value="50"/>
    <controlsPadding value="5"/>

    <showPreviewImage value="true"/>
    <showShareBtn value="false"/>
    <showHidePlaylistBtn value="false"/>
    <showFullScreenBtn value="true"/>
    <showMiddlePlayBtn value="true"/>

    <showWatermark value="true"/>
    <watermarkPos value="BR"/>

    <spaceKeyListener value="true"/>
    <clickListener value="true"/>

    <playlistSize value="0"/>
    <playlistThumbWidth value="70"/>
    <playlistThumbHeight value="50"/>
    <playlistThumbPadding value="10"/>

    <descriptionSize value="0"/>
    <descriptionTextPadding value="10"/>
</options>

<colors>
    <playerBackground value="0x000000"/>
    <preloader background="0x000000" bckAlpha="70" text="0xCCCCCC" circle="0x559BB5"/>
    <middlePlayBtn arrowNormal="0xFFFFFF" bckNormal="0x000000" alphaNormal="60" arrowOver="0xFFFFFF" bckOver="0x000000" alphaOver="80" arrowDown="0xFFFFFF" bckDown="0x000000" alphaDown="100"/>
    <controllerBackground value="0x000000"/>
    <controllerButtons normal="0xCCCCCC" over="0xFFFFFF" down="0xFFFFFF"/>
    <volume border="0x666666" background="0x000000" speaker="0xCCCCCC" bar="0x559BB5"/>
    <volumeScrubBtn brdNormal="0xCCCCCC" bckNormal="0x000000" brdOver="0xFFFFFF" bckOver="0x000000" brdDown="0xFFFFFF" bckDown="0x000000" />
    <progressBar border="0x666666" background="0x000000" elapse="0x559BB5" download="0x999999"/>
    <progressScrubBtn brdNormal="0xCCCCCC" bckNormal="0x000000" brdOver="0xFFFFFF" bckOver="0x000000" brdDown="0xFFFFFF" bckDown="0x000000" />
    <times value="0xCCCCCC"/>
    <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"/>
    <playlist background="0x151515" line="0x202020" thumbBck="0x000000" thumbNormalAlpha="30" thumbOverAlpha="70" thumbSelectedAlpha="100" title="0x559BB5" description="0xCCCCCC"/>
    <category bckNormal="0x101010" titleNormal="0xCCCCCC" bckOver="0x000000" titleOver="0xFFFFFF" bckSelected="0x559BB5" titleSelected="0x000000"/>
    <description background="0x151515" line="0x202020" title="0xFFFFFF" description="0xCCCCCC"/>
    <scrollBar trackBar="0xCCCCCC" scrubBrdNormal="0xCCCCCC" scrubBckNormal="0x000000" scrubBrdOver="0xFFFFFF" scrubBckOver="0x000000" scrubBrdDown="0xFFFFFF" scrubBckDown="0x000000"/>
</colors>

<videos>
    <category title="Animations">
    <video>
    <videoPath value="video.mp4"/>
    <previewImage value="image.jpg"/>
    <aspectRatio value="4:3"/>
    <totalTime value=""/>
    <watermarkPath value="http://mydomain.com"/>
    <watermarkLink value="http://mydomain.com"/>
    </video>
    </category>
</videos>

in this code i want to change the following dynamically with php

    <videoPath value="video.mp4"/>
    <previewImage value="image.jpg"/>

or let me know how can i generate the whole code with php or include in php

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:02:19+00:00Added an answer on May 13, 2026 at 8:02 am

    Using DomDocument is one option:

    $dom = new DomDocument;
    $dom->loadXml($xml);
    $videoPaths = $dom->getElementsByTagName('videoPath');
    foreach ($videoPaths as $videoPath) {
      $videoPath->setAttribute('value', 'newvideo.mp4');
    }
    $previewImages = $dom->getElementsByTagName('previewImage');
    foreach ($previewImages as $previewImage) {
      $previewImage->setAttribute('value', 'newimage.jpg');
    }
    $xml = $dom->saveXml();
    

    SimpleXML may also suit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 298k
  • Answers 298k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer No, the constructor of the parent class is not called… May 13, 2026 at 7:37 pm
  • Editorial Team
    Editorial Team added an answer phpinfo() shows, in the "Local Value" column, the current configuration… May 13, 2026 at 7:37 pm
  • Editorial Team
    Editorial Team added an answer Do not using [mapView addAnnotation:pin] in loop,you can use this… May 13, 2026 at 7:37 pm

Related Questions

I am trying to create a new XML file from an exisiting one using
Here is my PHP code $xml= new SimpleXmlElement($rawxml); foreach($xml->children()->children() AS $key){ $id = $xml->{id};
I've got a Flex 3 application with an HTTPService returning an Atom feed. I
I have an XML that needs to be parsed using jQuery. I understand how
So I'm trying to loop over a List<MyClass> for display in the view of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.