GetSimple Support Forum
XML file structure - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: XML file structure (/showthread.php?tid=232)



XML file structure - internet54 - 2009-11-28

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!


XML file structure - ccagle8 - 2009-11-30

what do you mean by clean code? UTF8 for i18n was a major problem that required a lot of encoding...


XML file structure - internet54 - 2009-11-30

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.