Announcement
Collapse
No announcement yet.
X
-
Both should return null, unless you've tripped across some weird IE7 bug. One correct XPath to find all occurrences of acct_id would be "//acct_id".
-
XMLTools.selectString Issue
Be sure your post includes:
I'm using SmartGWT 2.4 with IE 7.
I'm having a problem with the selectString method of the XMLTools class.
The following statement returns a "1", which is what I expect:
However, the next statement returns null:Code:XMLTools.selectString("<accountlist><account><acct_id>1</acct_id></account></accountlist>", "acct_id")
From the javadocs, selectString will return the first occurrence if there is more than one matching node.Code:XMLTools.selectString("<accountlist><account><acct_id>1</acct_id></account><account><acct_id>2</acct_id></account></accountlist>", "acct_id")
Any thougths?Tags: None
Leave a comment: