Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: MSXML4 selectSingleNode NOT case sensitive [Thread Next] Re: MSXML4 selectSingleNode NOT case sensitiveTo: NULL Date: 2/3/2005 4:38:00 PM
Den Dam wrote:
> But now I have something like this:
> <xml>
> <Body>
> <LT_Status>
> <Error_Code>0</Error_Code>
> </LT_Status>
> </Body>
> </xml>
>
> Can I do something like this:
> selectSingleNode("//*[translate(local-name(),
> 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') =
> 'xml/body/lt_status/error_code']")
>
> (the above sample doesn't work).
I have suggested the XPath expression
//*[translate(local-name(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz') ='error_code']
it "works", so use that if you do not understand XPath. If you want to
make changes then try an XPath tutorial first, it doesn't make much
sense that you change working solutions for whatever reason and then
complain they don't work.
One XPath tutorial is here:
<http://www.w3schools.com/xpath/default.asp>
there are other certainly.
--
Martin Honnen
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
