XML Tutorials
  Home arrow XML Tutorials arrow Page 2 - Creating XML Taxonomies
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML TUTORIALS

Creating XML Taxonomies
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-02-11

    Table of Contents:
  • Creating XML Taxonomies
  • What Are Our Needs?
  • Our Parents
  • What's Next?

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating XML Taxonomies - What Are Our Needs?


    (Page 2 of 4 )

     

    For starters, we are going to create our categories. After that, we will focus on breaking them down into subcategories. From this point on we will refer to the categories as the parent and the subcategories as the child. 

    First though, we need to define what our root is. Our root, in this instance, is going to be what we are selling, which is, for lack of a better word, albums. We could make the root the singular version, album. But we must remember that a customer could buy more than one album from us in a transaction. Therefore, we will use albums as the root. 

    In real life if we were going to create a taxonomy, we would speak to the owner of a company, look at their files, speak to the people creating the program that will eventually process our XML, look at receipts of previous transactions, and take into account all of the possible data that we might want to write reports based off of. We would then trim this data down into what we truly need. 

    For instance, if we sold grape juice, we wouldn’t need to know the color of the juice being sold, as we could already assume that it's purple, and having the color probably would have no bearing on our business. 

    We could also look for pre-written taxonomies. Pre-written taxonomies exist to create a common thread through a given industry. The SEC (Securities and Exchange Commission), for instance, has a set of taxonomies in place that help ensure when a company submits filings such as quarterly reports, 8-Ks, and annual reports, that all of the information is in compliance with the standards they have set forth. This in turn allows companies that aggregate or gather that information to be able to do so in a simple manner. 

    For our purposes, however, we are going to create our own. After all, a major reason we are using XML is to define our own data and not be limited by someone else's. 

    More XML Tutorials Articles
    More By James Payne


       · Thanks for the great 3 parts so far James. I rated it a 4 star for now as I feel a...
     

    XML TUTORIALS ARTICLES

    - Validation with Document Type Definitions (D...
    - Creating a Well-Formed XML Document
    - Creating XML Taxonomies
    - Getting to Know XML
    - A Friendly Approach to XML
    - Creating RSS 2.0 Feeds
    - Using Modules in Your RSS Feed
    - RSS 2.0
    - Querying XML: Use Cases
    - Joins and Query Use with XML
    - Solving Problems by Querying XML
    - Performing Set Operations When Querying XML
    - Querying XML
    - Handling Data for Ajax with JSON
    - Handling XML Data for Ajax





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek