SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: xml benefit

  1. #1
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    xml benefit

    would it have any advantages to store a tree like navigation structure as xml than in mysql or files for example?
    and how would i do that?
    yeah, the tree functions are in php.
    thx

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,651
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    XML is great for trees because the structure is already a tree, whereas with queries from a database you generally have to create the "tree" in code.

  3. #3
    SitePoint Wizard webcosmo's Avatar
    Join Date
    Oct 2007
    Location
    Boston, MA
    Posts
    1,480
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    File size would be somewhat bigger compared to mySql

  4. #4
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay. thanks for the responce guys.
    ill keep this in mind when choosing where to store data.


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
  •