Hi, Thanks for your reply.. Now the problem has been resolved... Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi, Thanks for your reply.. Now the problem has been resolved... Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi,
I want to validate the xml file against certain set of rules in database.I have done most of the this but got stuck in below part. Any pointers will be appreciated.
Following is the sample xml file.
<BACKGROUND>
<QUES_NUMBER>1</QUES_NUMBER>
<QUES_RESPONSE>Y</QUES_RESPONSE>
</BACKGROUND>
<BACKGROUND>
<QUES_NUMBER>2</QUES_NUMBER>
<QUES_RESPONSE>Y</QUES_RESPONSE>
</BACKGROUND>
<BACKGROUND>
<QUES_NUMBER>3</QUES_NUMBER>
<QUES_RESPONSE>Y</QUES_RESPONSE>
</BACKGROUND>
<BACKGROUND>
<QUES_NUMBER>4</QUES_NUMBER>
<QUES_RESPONSE>N</QUES_RESPONSE>
</BACKGROUND>
<BACKGROUND>
<QUES_NUMBER>5</QUES_NUMBER>
<QUES_RESPONSE>Y</QUES_RESPONSE>
</BACKGROUND>
<BACKGROUND>
<QUES_NUMBER>1A</QUES_NUMBER>
<QUES_RESPONSE>Y</QUES_RESPONSE>
</BACKGROUND>
As displayed there are multiple instances of <BACKGROUND><QUES_NUMBER><QUES_RESPONSE></BACKGROUND> tag. Now I have to validate below rule.
Rule 1- If QUES_NUMBER in (1,01,001) Then QUES_RESPONSE should be in (Y,N)
Rule 2- If QUES_RESPONSE Equals (Y) Then one instance of QUES_NUMBER 1A,01A,1B,01B should exist.
Rule 3- If QUES_NUMBER in (1A,01A) Then QUES_RESPONSE (X,Y,Z,Y/Z)
Rule 3.1- If QUES_NUMBER in (1B,01B) Then QUES_RESPONSE (X,Y,Z,Y/Z)
This is the complete Rule. If we are processing rule number 1 and result is true then we have to validate THEN condition (QUES_RESPONSE).
If THEN condition is true then I have to process Rule 2 (as there are multiple instance of same tag) I have to check the QUES_RESPONSE (Y)
of the same tag for which I have validated Rule 1 condition. For that purpose I am passing then index of index of the QUES_NUMBER and it works f9.
PROBLEM occurred in the THEN condition of Rule 2..Where are I am passing the value in xml file and match value (value in database Y,N) and index of the
question number to look at. But the as per then condition 1A..tag should exist and the code will try to locate the tag on that index which he will never
find.
Any pointer where I need to change in logic/any other way will be appreciated.
Below is the function which is validating the value in xml fil
Hi all, I am createing a report in SSRS 2008. When i select the pagebreak option then it is creating multiple tabs for each group. but I want all the data in the single sheet instead of different tab with page break. any solution? Thanks in Adv Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi all, I want to ignore negative while sorting a generic array list. eg. If list contain following values 0.3 0.2 -0.3 after sofrting it should values should be in following order 0.3 -0.3 0.2 Any solution guyz. Thanks in advance.
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi, You can use google API to find out the lattitude ,longitude of user current position. Then use the mathimatical formula to find out the distance. Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
DONE-Problem Resolved Hi all, I am createing msi package of my application. If the msi package already install on the system then automatically it should uninstall the previous version and install the new version. Can anybody help me how can i do this? Regards Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
modified on Monday, July 26, 2010 4:50 AM
Hi Abhinav, I am getting all the current currency rates just need a formula to convert each curr inEURo. Will try and let u knkow? Thanks
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi, I am getting the daily rates. I just want to know the formula to convert. Suppose i got amount 140 in GBP now i want to convert it into EURO so what will be the formula. Regards Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi All, I want to convert EURO currency to GBP,USD,CHF,SEK etc. Dosenot any one knows the formula should i use to convert each currency to EURO. I am getting current rate of each currency. Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi all, I am creating a xml file dynamically. If there is no data for a particuler tag then XMl file automatically close it like <test /> but i want to the tag in following format <test> </test> I am creating XML using following tag. writer.WriteElementString("test",""); Can anybody please help me? Regards Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi, Managed code : the code which run under the control of CLR is managed code. UnManaged Code : Which dosenot run under the control of CLR. Hope this help. Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi all, Could you please let me know why C# performance is best than vb.net? What is the technical reason behind this? Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi , You can use FCK editor ot FreeTextBox. Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi, I have done this using update panel. It will not postback the page, but i want to reload a specific portion of the page then how can i do this? I read a article some where that we can reload specific portion of the page using AJAX. Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi all, My gridview was populated by some records and i have provided page size of 10. When i do the paging the it reload the whole page but i want it show load only that specific portion of the page instead of loading whole page. how can i do that? Can i do this using Ajax? Thanks
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi I have already gone through that link and make the changes in web.config file as i mentioned in thread. Do i need to change any other changes in code for this one? Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi all, I want to convert my asp.net application to run on trust level "Medium". How can i configure my application to run in "Medium" trust level. Which changes in need to do in code? I have made changes trust level medium in my web.config file. Which changes in need to do? Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi, I know it is the social networking website but what is the use of integrating it with our web site. Thanks
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi all, What is the purpose of twitter/facebook integration with our website. What actually will happen when we integrate twitter/facebook in our website. Could anybody also send me links where the integration have been done. Thanks Rahul
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
Hi Some body has told me that we can execute scheduler in silent mode.In silent mode it won't ask for confirmation. Do you know about that?
People Laugh on me Because i am Different but i Laugh on them Because they all are same.
modified on Monday, August 31, 2009 6:14 AM