For xml parsing i sometimes wrote small bit of code that generate code . lol
On Fri, Aug 14, 2009 at 1:51 PM, Cerebrus <[email protected]> wrote: > > I think we would need to see an example of the kind of switch > statement that would be required, in order to better understand the > problem. > > On Aug 14, 4:00 am, Scott <[email protected]> wrote: > > I am writing a program to run test scenarios against a web service. > > The test scenarios are contained in an XML document. I need to check > > the returned value of the web service against a node in the XML > > document. > > > > If the result of the web service were un-typed I could use a single > > line of code to solve my problem: > > > > if (webServiceResult[element].ToString() == node.InnerText) > > > > HOWEVER, the web service result variable is strongly typed and I would > > need to write a switch statement for every element in the web service. > > > > Since I'm lazy, how can I convert the strongly-typed web service > > result object into an un-typed object I can reference using string > > variables? > -- Santhosh V http://techplex.wordpress.com
