Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    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:

    Code:
    XMLTools.selectString("<accountlist><account><acct_id>1</acct_id></account></accountlist>", "acct_id")
    However, the next statement returns null:

    Code:
    XMLTools.selectString("<accountlist><account><acct_id>1</acct_id></account><account><acct_id>2</acct_id></account></accountlist>", "acct_id")
    From the javadocs, selectString will return the first occurrence if there is more than one matching node.

    Any thougths?

    #2
    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".

    Comment

    Working...
    X