How to serialize an object to XML with dynamic element's attribute?

Any web designer help with object element ?

  • Cant get the .flv to be embed in the html document , i know there's an alternative using video and audio element of html 5 but please i want to learn the object element here's my code , don't know why aint working <?xml version="1.1" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "//dtd//xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-… <html dir="ltr" xmlns="www.w3.org/1999/xhtml"> <head> <title>Using flash onject</title> </head> <body> <h1> A FLASH MOVIE(.flv)</h1> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-4… codebase="http://download.macromedia.com… swflash.cab" type="application/x-shockwave-flash" data="video.flv" height="300" width="300"> <param name="play" value="true"></param> <param name="allowscriptaccess" value="always"></param> <param name="allowfullscreen" value="true"></param> <param name="loop" value="true"></param> <embed src="video.flv" allowscriptaccess="always" play="true" allowfullscreen="true" loop="false" pluginspage="http://www.macromedia.com/s… type="application/x-shockwave-flash" height="300" width="300"></embed></object> </body> </html> Plus please tell me how to add mp3 through the object element ,and how to add videos of other format , I repeat i want to learn it through the OBJECT element , will really appreciate your concern guys

  • Answer:

    First remove this: <?xml version="1.1" encoding="UTF-8"?> Better with: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/ TR/xhtml1/ DTD/xhtml1-strict.dtd"> [remove spaces] <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> Embedding Media Example: Flash XHTML Compliance: http://www.wimpyplayer.com/docs/howto/xhtml-compliance.html <object type="application/x-shockwave-flash" data="movie.swf" width="400" height="300"> <param name="movie" value="movie.swf" /> <param name="loop" value="false" /> <param name="menu" value="false" /> <param name="quality" value="high" /> <param name="scale" value="noscale" /> <param name="salign" value="lt" /> <param name="bgcolor" value="#000000" /> </object> OBJECT tag syntax: http://kb2.adobe.com/cps/415/tn_4150.html Flash Satay: Embedding Flash While Supporting Standards: http://www.alistapart.com/articles/flashsatay How to Add Music to Web Site: How to play music on a website, blog or MySpace with HTML music codes.: http://www.hypergurl.com/music.html How to Add Background Music to Your Web Page: http://www.thesitewizard.com/webdesign/backgroundmusic.shtml How to Add Background Music to a Website: http://www.2createawebsite.com/enhance/adding-music.html How To Add Music to a Website Using HTML Code: http://www.howtodothings.com/computers/a2739-how-to-add-music-to-a-website-using-html-code.html How To Add Music To Your Blog Or Website: http://bandweblogs.com/howtoaddmusictowebsite.html Ron

Soulja Buoy at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.