I am using VS 2008. I have to create a wcf service and inside the service i have to do some basic operations on a xml file using LINQ to XML. I have to host the service in IIS 7.0 and consume it.
As part of the LINQ to XML I have to do the following tasks :
- find all the questions in all the Enquiry that answers are no
- modify the question and answer of Enquiry id="Enquiry2"
Pasted below is the XML file
<b:ServeySet xmlns:b="b:urn:schemas-microsoft-com">
<b:Enquires>
<b:Enquiry id="Enquiry1">
<b:Question id="1" question="is the summer hot in LA?" answer="yes"/>
<b:Question id="3" question="is this hard exercise?" answer="no"/>
<b:Question id="2" question="is this awesome?" answer="yes"/>
</b:Enquiry >
<b:Enquiry id="Enquiry2">
<b:Question id="1" question="what is SFO?" answer="City"/>
<b:Question id="2" question="is this hard exercise?" answer="no"/>
</b:Enquiry >
</b:Enquires>
</b:ServeySet>