View Full Version : DomQuery Help

17 Mar 2010, 12:51 AM
I'm trying to extrapolate the date ( "17/03/2010 09.42.22") (text format) into a variable using domQuery.
My attempt seems not to work and I can not find a way.
Someone can help me?

Thank you.

My xml code:

<?xml version="1.0" encoding="UTF-8"?>
<viewentries timestamp="20100317T084243,74Z" toplevelentries="1805">
<viewentry position="1202" unid="A88FC6D090FE2AA8C12576E800591E34" noteid="9212" siblings="1805">
<entrydata columnnumber="0" name="$1">
<entrydata columnnumber="1" name="Modified">
<text>17/03/2010 09.42.22</text></entrydata>
My code:

success: function ( result, request) {
var response = result.responseXML;
var q = Ext.DomQuery;
var date = q.selectValue("//entrydata[@name = 'Modified']/text",response.documentElement);