My DA Favourites
I Came, I Dreamed, I Conquered by Volture
1 Jul, 2008

XML Design Guidelines

I've recently started a new job as a PHP and MySQL developer (which I'm super excited about) and a portion of the project I'm assigned to relies heavily on XML files.  I'm familiar with XML as far as XHTML and RSS feeds are concerned but when it comes to designing an XML structure (which I'm not currently doing) I'm certainly not familiar with best practices.

So I found this great resource on the IBM site which breaks it down nicely - Principles of XML design: When to use elements versus attributes

I felt I needed to familiarise myself with this because I'm working with PHP 4 which is aweful for working with XML files, so you need to convert the XML to an array to be able to work with it, but arrays really aren't a good replacement for XML.  You really need to have a good understanding to properly work with the data.  If we could rely on PHP 5 we could use any of a number of XML functions that would make working with XML files a breeze.

Filed In:

Comments

No comments have been posted.

Add comment:


Submit Comment Preview Comment

Rules: Paragraphs and linebreaks are automatically created (two or more linebreaks create a paragraph). Linebreaks between code tags remain linebreaks. Block tags cannot be enclosed by inline tags. Red attributes are required and green is optional.

Use "&lt;" and "&gt;" for "<" and ">". Enclosing PHP code in <code> tags will highlight the code (i.e. <code>&lt;?php echo 'hello world'; ?&gt;</code>).

List of valid tags: