All'interno di un testo posso trovare questi oggetti microdata:



<div>Hendershot 's Bar Caffè


1560 Oglethorpe Ave, Athens, GA </p>
</Div>
<div itemscope = " http://data-vocabulary.org/Organization " >
<Span itemprop = "nome" > Hendershot's Coffee Bar </span>

<P itemprop = "indirizzo" itemscope ItemType = " http://data-vocabulary.org/Address " >
<Span itemprop = "street-address" > 1560 Oglethorpe Ave </span>,
<Span itemprop = "località" > Atene </span>,
<Span itemprop = "regione" > GA </span>.
</P>
</Div>
<div itemscope = " http://data-vocabulary.org/Organization " >
<Span itemprop = "nome" > Hendershot's Coffee Bar </span>

<P itemprop = "indirizzo" itemscope ItemType = " http://data-vocabulary.org/Giacomo " >
<Span itemprop = "street-address" > 1560 Oglethorpe Ave </span>,
<Span itemprop = "località" > Atene </span>,
<Span itemprop = "regione" > GA </span>.
</P>
</Div>

script:

$(document).ready(function() {


$('p').each(function() {

var $a = $(this);
if(!$a.attr('ItemType')) return true;
if($a.attr('ItemType')!=" http://data-vocabulary.org/Address ") return true;
.........................................
........................................

Con questo ciclo each faccio la ricerca di "oggetti" con attributo itemtype= " http://data-vocabulary.org/Address ".
Quello che mi chiedo ora, come faccio ad accedere alle informazioni date dai "figli"

<Span itemprop = "street-address" > 1560 Oglethorpe Ave </span>,
<Span itemprop = "località" > Atene </span>,
<Span itemprop = "regione" > GA </span>.

cioè:
1560 Oglethorpe Av, Atene, GA
e salvarle dentro delle variabili???

Spero di essere stato un pò kiaro.