? Content spacing
Help on Content spacing :
The Content spacing topic has two indicators. The first is the indentation size ratio, as many Xml streams are gracefully decorated with useless spaces and tabs. The other indicator reveals if there is a significant amount of multiple spaces between attributes.
Both indentation and multiple spaces are useless. Close this one
Help on Content Indentation :
Indentation is a decoration, and is aimed to make Xml human readable but it has a high overhead in size. Let's see the sample below :
This one is 150 bytes. Now let's show the same content without indentation :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Bookstore SYSTEM "bookshop.dtd">
<Bookstore><!--J&R Booksellers Database--><Book Genre="Thriller"In_Stock="Yes"><Title>The Round Door</Title></Book></Bookstore>
This one reduces the size down to 136 bytes. If we take the whole Bookshop.xml sample, where we have only 4 books declared by the way, then the gain is 16%. As an experimental rule, the indentation ratio increases with the Xml stream size and may even overcome the real content size. Close this one
Help on Content Indentation Gain :
This is the resulting gain if we remove indentation from the whole Xml stream. Average is 10%. Close this one
Help on white spaces in Content :
This indicator shows if there are significant multiple white spaces between attributes in the Xml stream. Of course the multiple white spaces are useless. Only one suffice. Most Xml parsers don't allow no white space at all between attributes (unlike HTML), so most of the time this indicator come out with a not significant multiple white spaces ranking. Below is a sample of multiple white spaces :
  <book year="1999"  price="20$"/>
Close this one