>m.OROOT.selectNodes("Documento/dataobra").item(0).text >>When i must used .item(x), always ? and it´s refer to content of my xml Tag ?
m.nodelist = m.OROOT.selectNodes("Documento/dataobra") IF m.nodelist.length == 0 * the element does not exist * deal with it ELSE * get the value from the first element of the list of selected nodes m.dataobra = m.nodelist.item(0).text ENDIF(of course, you may define a function to ease the repetition of the construction).