Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML file structure
#1
Hello,

Just looking around and I'm interested in using the system on my client sites.

My question is this.

Looking at an xml file directly it appears that it takes the typical symbol codes and makes them html codes.
------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<item><pubDate>Fri, 27 Nov 2009 19:30:36 -0600</pubDate><title><![CDATA[About Us]]></title><url><![CDATA[about]]></url><meta><![CDATA[about us page here]]></meta><menu><![CDATA[About Us Page Information]]></menu><menuOrder><![CDATA[0]]></menuOrder><menuStatus><![CDATA[Y]]></menuStatus><template><![CDATA[template.php]]></template><parent></parent><content><![CDATA[&lt;p&gt;Testing 1 2 3&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Quad Spaced&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h1&gt;HEADING 1&lt;/h1&gt;
&lt;p&gt;
&lt;ul&gt;
&lt;li&gt;HERE&lt;/li&gt;
&lt;li&gt;HERE&lt;/li&gt;
&lt;li&gt;HERE&lt;/li&gt;
&lt;li&gt;HERE&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;HEADING 3&lt;/h3&gt;
&lt;p&gt;&lt;ol&gt;
&lt;li&gt;HERE&lt;/li&gt;
&lt;li&gt;HERE&lt;/li&gt;
&lt;li&gt;HERE&lt;/li&gt;
&lt;li&gt;HERE&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;
&lt;/p&gt;]]></content><private></private></item>
--------------------------------------

Is this the correct format I'm looking at?
Why doesn't it use clean code?

Thanks!
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#2
what do you mean by clean code? UTF8 for i18n was a major problem that required a lot of encoding...
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#3
Hey Chris,

I'm talking about coding brackets in an easy to read format.

When you look at this part of a created xml file....

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Quad Spaced&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h1&gt;HEADING 1&lt;/h1&gt;

It's not as easy to code as something like this...
<p> </p>
<p>Quad Spaced</p>
<p> </p>
<h1>HEADING 1</h1>

Is the script converting the brackets to this format?
Why does have the xml file have normal brackets, and the created content area encoded?

Thanks!

BTW - I'm working on converting your script to allow blog posting. I know this is against your vision for the script, but I believe it is something that would be a HUGE help for any site owner. I'm personally burnt out on WordPress and having to convert this to that and exclude this call to include another and so on and so on. I LOVE the simplicity of the script, but would love to see a normal coding of an xml file as it would create smaller file sizes and ultimately faster performance.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply




Users browsing this thread: 1 Guest(s)