[html][body] [xml id="result" javaDSOCompatible="true"] [mytable xmlns:dt="urn:schemas-microsoft-com:datatypes"] [row] [field1 dt:dt="string"]value1[/field1] [/row] [/mytable] [/xml] [script] // this returns 2 alert( 'Field count ' + result.recordset.Fields.Count ); // this for loop is not executed! Why? for ( f in result.recordset.Fields ) alert( 'Field name ' + f.Name ); [/script] [/body][/html]