Results 1 to 3 of 3

Thread: [RESOLVED] Convention with XML structure

  1. #1

    Thread Starter
    Fanatic Member Seraph's Avatar
    Join Date
    Jul 2007
    Posts
    959

    Resolved [RESOLVED] Convention with XML structure

    Would it be bad to save my XML data in this format?
    Code:
    <folder_list>
    	<folder tag="Program Files" abs="C:\Program Files" unc="C:\Program Files" lbl="default" />
    </folder_list>
    Basically, there is a listbox that will show the tag "Program Files" for visual user reference.
    The abs, unc and lbl attributes will mainly be in a DataTable, only called upon when an entry is double-clicked in the listbox.

    Is there a particular reason I would save this data differently, or is it sorta left up to preference?

    Visual Studio 2010 Professional | .NET Framework 4.0 | Windows 7

    SERYSOFT.COM :: SysPad - Folder Management Program - Please comment HERE if you find this program useful, have ideas, or know of any bugs.
    [Very useful for IT/DP departments where many folders are consistently accessed. Also contains a scratchpad window for quick access to notes.]

    [.NET and MySQL Quick Guide]

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Convention with XML structure

    preference mostly. Based on the data you've provided in your example, that's the way I'd go with it too. The data is specific to the folder item.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [RESOLVED] Convention with XML structure


Posting Permissions

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



Click Here to Expand Forum to Full Width