It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have two xmls, say Sample1.xml and Sample2.xml. Now I need to compare both the xml values (parent nodes, child nodes, attributes and its values) and return the differences between them in xquery. I knew I can use deep-equal function to say if the xmls are identical. But I do not know how to compare and return the xml difference.
Please help.
Thanks,
-N
Depending on the degree of generality we're talking about here, this is a non-trivial problem (PDF). If your question is, "how do I write this algorithm," then it's way too open-ended for StackOverflow (see the FAQ). If, on the other hand, you are asking, "Is there any XQuery library code out there that will do this," then it appears that simply Googling "XML difference XQuery" will lead you straight to the answer. Faster, even, then having someone else do the Googling for you on Stack Overflow.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How to choose a language, a lambda term (λx.y)((λx.xxx)(λx.xxx)) actually calculated? In other words, need a language to the normal order reduction and the weak type system.
What have you search for and what have you found so far?
I'd say there is no standard language that meets this requirement, since in most languages you always have different types, not just untyped terms. You probably need a pure lambda calculus interpreter (implementing one is a good exercise).
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a sql query that should return results for user text (Like free text search)which can be a single character or word or combination of words.
For example if I have column named "subject" and its value is Very long test, then I want a query that can give result if I put test or t or `e'in the query below
select Subject from [dbo].[Email] where Contains(Subject,'%usertext%')
I tried handling in code behind and then sending it to the query as parameter.
am editing this question because of so many down votes. Please if you dont understand the question simply comment so I can try to ask more clearly. That would be helping me.
You don't need the % character, since the function Contains already implied that.
So :
select Subject from [dbo].[Email] where Contains(Subject,'t')
The % are for LIKE function
select Subject from [dbo].[Email] where Subject LIKE '%t%'
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've been asked to model my application. I'm not clear what this means, Perhaps something related to the architecture of my project?. Does it mean giving them a break-up of the classes? Or something like building a use-case or class diagram? Or perhaps something else?
EDIT: I cannot ask them!
I'd go with UML (Unified Modelling Language). It allows you to lay out classes, methods, inheritance, etc. in a graphical format.
A quick Google search gives this FOSS option:
Umbrello UML Modeller
EDIT: Just realized that's linux-only, so here's the Wikipedia page for a whole bunch of other options.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm trying to create a directory structure, with folders,similar to Windows Explorer, with R. Someone can help me with this ?
Thank you
If you want this for visualizing things within R, rather than directories on your disk (in which case you can use choose.dir or similar tools as suggested), then look at the TkListView function in the TeachingDemos package to see if that is the functionality that you want. If the TkListView function itself does not do what you want, but gives the correct display, then you can look at the code for the function (it is only R code, other than the Tk calls) and see if you can modify it to do what you want.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I create an one webpage in asp.net all the time i am facing the following pbm how to rectify it..
if(ds.Tables[0].Rows.Count > 0)
Maybe you need to check that ds.Tables[0] exists first
If you are constantly checking on your pages to see if that dataset has a table with rows, I would think you would want to make some helper class to check that your dataset is not null, and that whatever tables have actual rows. Also you might want to think about moving these to typed datasets.