Wednesday, January 20, 2016

Blogger XML Operator and Syntax Updates 2015

Recently Blogger has released several new operators for the syntax of XML them. This new syntax allows us to be able to write code templates that better, more logical and more efficient. In addition to reducing the size of the file is XML, the new syntax also allows developers to be able to find new potentials in manipulating the template code Bloggers who used mostly only we can do with JavaScript. Here is a summary ...

And

Before

<b:if cond='data:blog.searchQuery'> <b:if cond='data:numPosts &gt; 10'> The search results by the number of posts more than 10 ... </b:if></b:if>

After

<b:if cond='data:blog.searchQuery and data:numPosts &gt; 10'> The search results by the number of posts more than 10 ...</b:if>

<b:if cond='data:blog.searchQuery &amp;&amp; data:numPosts &gt; 10'> The search results by the number of posts more than 10 ...</b:if>

After

<!-- TEMPLATE ERROR: 'not' term cannot be used as operator except when preceding 'in' or 'contains' --><b:if cond='data:comment.isDeleted not &quot;false&quot;'> Comments are not erased here ...</b:if>