Comments

  1. I like the idea of using XML to store content of a site and at the moment I am trying to create a PHP based CMS which uses XML. Everything has gone as planned so far except that I’ll be implementing a news section which will allows visitors to leave comments. This is where the problem pops up. I will be storing the content of all pages including the news posts in individual xml files so I am thinking if whether I should store the comments also in their respective pages or create seperate xml files to store them?

    If I create seperate files to store the comments, can you think of a way I can establish relations between them? Basically create a link between all comments with their associated post.

    Regards,
    — Naif Amoodi

  2. James Robertson

    Your mileage may vary, but in my experience most CMS products tend to store their content in a database for performance reasons. That also helps with the relationships between pages, comments, etc.

    Of course, the content itself can be stored as XML within a suitable database field, and XML can be used as part of the publishing process if that is deemed valuable.

    Anyway, good luck with the new CMS!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

James Robertson
James Robertson
James Robertson is the Managing Director of Step Two, the global thought leaders on intranets, headquartered in Sydney, Australia. James is the author of the best-selling books Essential intranets, Designing intranets and What every intranet team should know. He has keynoted conferences around the globe. (Follow him on Twitter or find him on Google+)

Related Articles

From the store