[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Is it good/useful to normalize an XML data exchange format?

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Mon, 24 Nov 2014 16:59:28 +0000

Is it good/useful to normalize an XML data exchange format?

Hi Folks,

 

First, what is normalization? Answer: it is removing redundancy.

 

For example, in the following XML document the element <Author>Dick Grune</Author> occurs twice:

 

<BookCatalogue>
   
<Book>
       
<Title>Parsing Techniques</Title>
       
<Author>Dick Grune</Author>
   
</Book>
   
<Book>
       
<Title>Modern Compiler Design</Title>
       
<Author>Dick Grune</Author>
   
</Book>
</BookCatalogue>

 

Normalizing the XML document means eliminating the redundancy, perhaps like so:

 

<BookCatalogue>
   
<BooksByAuthor author="Dick Grune">
       
<Title>Parsing Techniques</Title>
       
<Title>Modern Compiler Design</Title>
   
</BooksByAuthor>
</BookCatalogue>

 

Across the Internet chatter we often hear people proclaim:

 

 

After all, a key part of designing database tables is to put them in “Normal Form”.

 

With all that normalization hype everyone then assumes that everything needs to be normalized. However, that is not correct.

 

The benefit of normalizing only applies when adding/deleting/modifying data. When the data is read-only (as is the case with a data exchange format) there is no benefit to normalizing. In fact, normalizing is the worst thing that you can do. Consider this: read-only databases are typically not normalized, they contain lots of redundant data so as to optimize read operations.

 

Should a data exchange format be normalized? Answer: No!

 

Comments?

 

/Roger



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.