If I have a .XML file that contains the following example:
<Socks Style ="Business/Business Casual/Casual"
When I try to use the Xpath expression below to find the element above by searching for the value contained in the Style Attribute, the expression returns null:
//Socks [@Style='Business/Business Casual/Casual']
I downloaded xPath virtualizer and I noticed that the expression above is adding the namespace alias when it finds the embedded forward slash contained in the value of the Style Attribute (which is of course not what I want to happen). This is driving me up a tree!! Isn't there a way to escape the forward slash? I know it is the slash that is the problem because for testing purposes I substituted dashes (-) in one of the nodes' Style Attribute values and then changed the xpath expression to match and it returned the exact node.
My goal is to do some replacements on all elements with the Style attribute based on each contents but I can't even try that because of this roadblock.
Please help anyone
View Complete Post