Latest news, food, business, travel, sport, Tips and Tricks...

Blogger data: Tag

The tag <data:...> is a singleton tag that allows us to print the single value of data point from the parent. In general terms VALUE in <data:VALUE> is an alias to parent variable name. Syntax maybe differ According from which the data is extracted and according to the type of the data.

<data:> tag Syntax

BLOGGER XML LANGUAGE

<data:VALUE/>

Example Composition of the Syntax

HAS SINGLE ITEM

<data:post/>

HAS OBJECT NODES

<data:post.labels/>

MULTIPLE NESTED OBJECTS

<data:post.labels.name/>

data: examples

FORM CHANGE

<b:loop values='data:post.labels' var='item'>

    <data:item/>

</b:loop>

In this example we can see variable item, transform to into a singleton <data:item/>.

Other Tag

,
//