Results 1 to 5 of 5

Thread: XML for CMS?

  1. #1
    Join Date
    May 2010
    Posts
    39
    Thanks
    10
    Thanked 2 Times in 2 Posts

    Default XML for CMS?

    In short, any good reason not to use XML as a database for CMS?

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    MUCH slower to search, and more complex coding.

    XML is best for hierarchical data that does not typically change after being saved.

    a DB is better when info will be read, searched, modified, etc. on a regular basis (as it will be in a CMS).

  3. The Following User Says Thank You to traq For This Useful Post:

    NickNameDrive (10-13-2010)

  4. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    With XML, you must load all of the data every time. With a database, you can pick certain parts to load. This makes searching, cross-referencing and many other operations more efficient with a database.

    If your CMS is only loading entire pages and not doing much with the data, XML will be fine. If you want any more complex operations, a database will be better.

    XML is better as a storage (archive) format, but not as an active format for a frequently used page where there are complex operations.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. The Following User Says Thank You to djr33 For This Useful Post:

    NickNameDrive (10-13-2010)

  6. #4
    Join Date
    May 2010
    Posts
    39
    Thanks
    10
    Thanked 2 Times in 2 Posts

    Default

    yes, that's pretty much what i've heard.

    How about small website with up to 50 articles (each 2 A4 pages top, 12px), no shops, just reading and checking photos, some basic JSs on Jquery. Would XML supply?

    Asking because i think i can try and do my custom CMS, but in XML though.

  7. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The size of the website isn't relevant. Just the way that each page processes.

    Assuming that every page is stored in a separate XML file, then the only question is how much extra processing is required after you load the data from the file.

    If you want to store everything in one place (all pages), then you absolutely want to use a database. But you could use separate XML files per page and it would probably work out.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •