Solved

How to make spaces or center in XML codes?

Posted on 2008-10-12
5
289 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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What does GoogleTagMgr javascripts below do 5 29
ASP server side get value 15 35
edit .asp files 5 30
XML Node Counting in MS Access VBA 4 32
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

808 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