Hi all,
I am using the xpathnavigator evaluate function on .net (xpath 1
right?). Now I need to expand the code to do multiple contains,
compare dates (such as 'before', 'between' and 'after'), and so on.
This is the thought:
//person[contains(@name, 'george') and not(contains(@n ame, 'bush'))
and before(@birthda te, '1980-01-01')]
How can I accomplish this? there are problems if the results of a
condition is a node-set or not I suppose. Every condition is generated
and added to the expression, the problem is that it MUST be one
expression, since I need to read it and load my controls with the
condition.
My UI looks like:
DropDown with the attributes
DropDown with some functions (contains, etc)
Textboxes for the strings/dates to compare the attributes with
What I am trying to accomplish is "refine your search" functionality,
or in other words "Live filters" where if the XML is changed, the
xpath is run and the view is updated.
Any ideas on how to do this using XPath/XQuery and .NET?
Thanks!
/ jorge
I am using the xpathnavigator evaluate function on .net (xpath 1
right?). Now I need to expand the code to do multiple contains,
compare dates (such as 'before', 'between' and 'after'), and so on.
This is the thought:
//person[contains(@name, 'george') and not(contains(@n ame, 'bush'))
and before(@birthda te, '1980-01-01')]
How can I accomplish this? there are problems if the results of a
condition is a node-set or not I suppose. Every condition is generated
and added to the expression, the problem is that it MUST be one
expression, since I need to read it and load my controls with the
condition.
My UI looks like:
DropDown with the attributes
DropDown with some functions (contains, etc)
Textboxes for the strings/dates to compare the attributes with
What I am trying to accomplish is "refine your search" functionality,
or in other words "Live filters" where if the XML is changed, the
xpath is run and the view is updated.
Any ideas on how to do this using XPath/XQuery and .NET?
Thanks!
/ jorge
Comment