-
Help with an XML file
I am setting up a cms system for a client (Power CMS from WebAssist). I keep running into a problem with the xml. WebAssist support told me that I could add a stylesheet dropdown to the wysiwyg editor, by creating and referencing an xml file. So I created the file, I don't really know a whole lot about xml, well nothing really, but I need to get this done this weekend, and it looks like they don't answer their support tickets on the weekends. So I am desperate for a little help.
I don't see an upload option here, so I will just copy and paste the xml file at the end of this post. If someone who knows xml could look at it and let me know if it looks correct, as in there are no errors in it. I think there might be because every time I reference it in one of the config files, it makes the wysiwyg editor go blank. I unreference it and it goes back to normal. So I think there may be something with my xml file. Any help would be greatly appreciated! I am just trying to get a style dropdown in the editor so my client can use the styles from the site's stylesheet so everything stays consistent, and so that she doesn't have to select a font, a font color, a font size, attribute, etc. You get it. So I just need to know if this xml file is correct. Help, please? Thank you!!!
Here's the xml file:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="http://foxfirenews.com/css/styles.css"?>
<style name="text" element="span"><attribute name="class" value="text"></style>
<style name="textitalic" element="span"><attribute name="class" value="textitalic"></style>
<style name="textunderline" element="span"><attribute name="class" value="textunderline"></style>
<style name="textunderlineitalic" element="span"><attribute name="class" value="textunderlineitalic"></style>
<style name="smalltext" element="span"><attribute name="class" value="smalltext"></style>
<style name="title" element="span"><attribute name="class" value="title"></style>
<style name="smallbold" element="span"><attribute name="class" value="smallbold"></style>
<style name="bold" element="span"><attribute name="class" value="bold"></style>
<style name="whitesmall" element="span"><attribute name="class" value="whitesmall"></style>
<style name="redtext" element="span"><attribute name="class" value="redtext"></style>
<style name="redlarge" element="span"><attribute name="class" value="redlarge"></style>
<style name="redsmallbold" element="span"><attribute name="class" value="redsmallbold"></style>
<style name="redtitle" element="span"><attribute name="class" value="redtitle"></style>
<style name="redsmall" element="span"><attribute name="class" value="redsmall"></style>
<style name="whitesmallbold" element="span"><attribute name="class" value="whitesmallbold"></style>
<style name="table" element="span"><attribute name="class" value="table"></style>
<style name="error" element="span"><attribute name="class" value="error"></style>
<style name="forminput" element="span"><attribute name="class" value="forminput"></style>
<style name="formerror" element="span"><attribute name="class" value="formerror"></style>
-
No one can tell me if this xml file is valid?
-
the xml file is not valid
becouse one root tag
your xml has many root tag
this is valid
Code:
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="http://foxfirenews.com/css/styles.css"?>
<root>
<style name="text" element="span"><attribute name="class" value="text"></style>
<style name="textitalic" element="span"><attribute name="class" value="textitalic"></style>
<style name="textunderline" element="span"><attribute name="class" value="textunderline"></style>
<style name="textunderlineitalic" element="span"><attribute name="class" value="textunderlineitalic"></style>
<style name="smalltext" element="span"><attribute name="class" value="smalltext"></style>
<style name="title" element="span"><attribute name="class" value="title"></style>
<style name="smallbold" element="span"><attribute name="class" value="smallbold"></style>
<style name="bold" element="span"><attribute name="class" value="bold"></style>
<style name="whitesmall" element="span"><attribute name="class" value="whitesmall"></style>
<style name="redtext" element="span"><attribute name="class" value="redtext"></style>
<style name="redlarge" element="span"><attribute name="class" value="redlarge"></style>
<style name="redsmallbold" element="span"><attribute name="class" value="redsmallbold"></style>
<style name="redtitle" element="span"><attribute name="class" value="redtitle"></style>
<style name="redsmall" element="span"><attribute name="class" value="redsmall"></style>
<style name="whitesmallbold" element="span"><attribute name="class" value="whitesmallbold"></style>
<style name="table" element="span"><attribute name="class" value="table"></style>
<style name="error" element="span"><attribute name="class" value="error"></style>
<style name="forminput" element="span"><attribute name="class" value="forminput"></style>
<style name="formerror" element="span"><attribute name="class" value="formerror"></style>
<root>
Helmut Hagemann
-
Isn't <Style> and </Style> the root tags???
-
-
Thanks for trying, but that's ok. This XML stuff is proving to be a little ridiculous, it's probably the most useless language I have ever seen, so instead of wasting my time trying to learn a yet another language which I think is just dumb, I think I'll just hire an XML freelancer to take care of it for me.
So thanks for trying everyone, but I just can't stand this anymore.
Similar Threads
-
By jase_dukerider in forum C++
Replies: 2
Last Post: 04-14-2005, 07:48 PM
-
By serge calderara in forum .NET
Replies: 3
Last Post: 04-12-2005, 01:10 PM
-
Replies: 8
Last Post: 08-23-2002, 04:35 PM
-
By Kelvin Teh in forum XML
Replies: 3
Last Post: 02-16-2001, 11:09 AM
-
Replies: 5
Last Post: 12-10-2000, 12:50 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|