M
Mint
i want to click the button and it alerts the text that filds in.
my fields is:
myFields
test
i use the code:
XDocument.UI.Alert(XDocument.DOM.selectSingleNode("/myFields/test").text);
but failed , it warns that "Object required!"
i have read the SDK,the sample code also uses the code like mine.why
the sampale can use it, not mine?
i change the code to:
XDocument.UI.Alert(XDocument.DOM.selectSingleNode("//my:myFields/my:test").text);
it is ok.
is there any difference?
can anyone help me ?
when will use"/", and "//", and "my:"
many thanx!
my fields is:
myFields
test
i use the code:
XDocument.UI.Alert(XDocument.DOM.selectSingleNode("/myFields/test").text);
but failed , it warns that "Object required!"
i have read the SDK,the sample code also uses the code like mine.why
the sampale can use it, not mine?
i change the code to:
XDocument.UI.Alert(XDocument.DOM.selectSingleNode("//my:myFields/my:test").text);
it is ok.
is there any difference?
can anyone help me ?
when will use"/", and "//", and "my:"
many thanx!