SA Developer .NET

Welcome to SA Developer .NET Sign in | Join | Help
in Search

concat in XPATH

Last post 10-06-2008, 8:39 by EricTruter. 2 replies.
Sort Posts: Previous Next
  •  09-22-2008, 21:42 14936

    concat in XPATH

    Hi guys,

    Interesting issue.

    In XMLSpy, I write the following XPath query to return a concatenated string of both nodes and text,

    concat(//fixture/@start-time, ' vs ', //fixture/@end-time) which returns the values that I need, for example '12:33PM vs 12:34AM' but when I run the same query in a console application it tells me that the query does not evaluate to a valid XPath query.

    Is there some limitations to .Net 3.5 and the use of XPath?


    'Not everything is binary, if you look closer you might find some hexadecimal in there somewhere'
  •  10-04-2008, 7:49 15068 in reply to 14936

    Re: concat in XPATH

    Hi Eric,

    Is the console application one you wrote using .NET 3.5?

    Have you tried using double quotes around the "vs"?

    Regards,

    Sanya

  •  10-06-2008, 8:39 15073 in reply to 15068

    Re: concat in XPATH

    Hi,

    Yes was written in 3.5 but I found another way around this problem, basically took two separate XmlNodes and concatenated the two together ...


    'Not everything is binary, if you look closer you might find some hexadecimal in there somewhere'
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems