Web Analytics Made Easy -
StatCounter Translating Xpath Output to String - CodingForum

Announcement

Collapse
No announcement yet.

Translating Xpath Output to String

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Translating Xpath Output to String

    Is it possible to translate or replace the output of an Xpath result? For example, I have the following Xpath query:

    Code:
    //CompetencyList/Competency/CompetencyAttributeList[not(CompetencyAttribute/Name='ASSET_TYPE_VALUE')]//parent::*/parent::*/Code
    I am looking to covert the value of "Code" to some string of my choosing. I've tried doing this with the "translate()" function, but cannot figure out the proper syntax to accomplish it.

    Can this even be accomplished?
Working...
X