Solved

How to make spaces or center in XML codes?

Posted on 2008-10-12
5
290 Views
Last Modified: 2013-11-19
I bought got a pre-made website template that uses XML. I'm trying to move the menu options (i.e. Home, About Us, Services) over a bit or center them, but i can;t figure it out.

Here is the code

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xml>
      
      <mainmenu>
            <title><![CDATA[ABOUT US]]></title>
            <content>elite_html_content_page.swf</content>
      </mainmenu>
      
      <mainmenu>
            <title><![CDATA[SERVICES]]></title>
            <content>elite_xml_news.swf</content>
      </mainmenu>      

      <mainmenu>
            <title><![CDATA[VIDEO TUTORIALS]]></title>
            <content>elite_powerful_dynamic_xml_video_gallery.swf</content>
      </mainmenu>

      <mainmenu>
            <title><![CDATA[WEEKLY NEWSLETTER]]></title>
            <content>elite_html_content_page.swf</content>
      </mainmenu>
      
      
      <mainmenu>
            <title><![CDATA[CONTACT]]></title>
            <content>elite_contact_form.swf</content>
      </mainmenu>
      
</xml>

Attached is an image of what i'm looking to do
menu.jpg
0
Comment
Question by:ColePatrol
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 39

Expert Comment

by:Roger Baklund
ID: 22699151
The changes you want can not be done in this xml file.

View the source of the web page, you will probably find one or more <link rel="stylesheet"  elements with reference to a css file. You will also find the main menu wrapped in html tags. You must show us these things for us to be able to help you.
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22699266
I would suggest you avoid templates that rely on XML files.  Those are not consistently parsed correctly by most browsers at present.  Find a template that relies on HTML and CSS only -- there are 100s of free ones -- http://www.google.com/search?num=30&q=HTML+CSS+only+website+templates

It will be some time before XML in templates is parsed correctly by all or most browsers.
0
 

Author Comment

by:ColePatrol
ID: 22699329
cxr does this help?


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>TekCG.com | Your Problems = Our Solutions</title>
<style type="text/css">
<!--body {      
margin-left: 0px;      
margin-top: 0px;      
margin-right: 0px;      
margin-bottom: 0px;
background-color: #000000;
}

-->
</style>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
      if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
      } else {
            AC_FL_RunContent(
                  'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                  'width', '100%',
                  'height', '100%',
                  'src', 'main',
                  'quality', 'high',
                  'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                  'align', 'middle',
                  'play', 'true',
                  'loop', 'true',
                  'scale', 'noscale',
                  'wmode', 'window',
                  'devicefont', 'false',
                  'id', 'main',
                  'bgcolor', '#000000',
                  'name', 'main',
                  'menu', 'true',
                  'allowFullScreen', 'true',
                  'allowScriptAccess','sameDomain',
                  'movie', 'main',
                  'salign', ''
                  ); //end AC code
      }
</script>
<noscript>
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="fullscreen" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="true" />
      <param name="movie" value="main.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#000000" />      <embed src="main.swf" quality="high" scale="noscale" bgcolor="#000000" width="100%" height="100%" name="main" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>
</noscript>
</body>
</html>
0
 
LVL 39

Accepted Solution

by:
Roger Baklund earned 125 total points
ID: 22699369
This is a flash movie called main.swf. Changes is done in flash, not in html/css.
0
 

Author Closing Comment

by:ColePatrol
ID: 31505508
Thanks
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question