I do not see why your "working" example (//h:span[@class='detail-block']//h:/text()
) should do. The h:
is an namespace prefix. hand has to be followed by an node or an attribute.
//h:span[@class='detail-block']//text()
will return any dependent text nodes to span[@class='detail-block']: Number: 7001 Location: California
For "Number:" use:
//h:span[@class='detail-block'][1]/h:span[1]/text()
For "7001
//h:span[@class='detail-block'][1]/h:span[2]//text()
And for "California"
//h:span[@class='detail-block'][2]/h:span[2]//text()