This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > April 2007 > Selecting Node text with a blackslash





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Selecting Node text with a blackslash
Jerry West

2007-04-30, 6:18 pm

I have a Node:

<id>V1394\1TRY4</id>

When I attempt to select the Node based on it's text it fails:

Set Node = xml.selectSingleNode("/id[. = 'V1394\1TRY4']")

If I remove the backslash, \, from the equation it works:

<id>V13941TRY4</id>
Set Node = xml.selectSingleNode("/id[. = 'V13941TRY4']")

Is there a way to select a Node whose text contains a backslash?

Thanks!

JW


Jerry West

2007-04-30, 6:18 pm

I see now that this statement solves the issue:

xml.setProperty "SelectionLanguage", "XPath"

Thanks,

jw

"Jerry West" <jw@comcast.net> wrote in message
news:133cfhled8sct1f@news.supernews.com...
>I have a Node:
>
> <id>V1394\1TRY4</id>
>
> When I attempt to select the Node based on it's text it fails:
>
> Set Node = xml.selectSingleNode("/id[. = 'V1394\1TRY4']")
>
> If I remove the backslash, \, from the equation it works:
>
> <id>V13941TRY4</id>
> Set Node = xml.selectSingleNode("/id[. = 'V13941TRY4']")
>
> Is there a way to select a Node whose text contains a backslash?
>
> Thanks!
>
> JW
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews