Hi,
I don't really know where my question should be posted, so if i am in the
wrong section i'm sorry.
Okay now to my question. I am using ASP.NET to consume a web service.
Then I get an xml base response from the web service.
My question is what is the right of going about to parse through
the data and then display the data? I was thinking of using XSLT.
So XSLT will help me parse the data, I also want to use that data i parse
with code.
For example, I call a web service to get booking avaliability from an
Airline Agency. They respond back with an XML document.
I want to get specific data from that XML document display it for the
customer in a neatly formatted way. Then the customer will pick a flight
they are interested in and then my code will generate a response back to
the Airline Agency.
So I need to know how I should do this. Kind of confused in how I should
go about to do this.
Thank you,
Tesh
Keenan Newton - 21 Apr 2005 07:54 GMT
Well two ways I would consider paring the dat either you can use the
DOM or XSLT. I would use the XSLT if i was looking not so much to
parse the data that comes back, but to format the data for presentation
purposes in other words. I would be looking to display all the data
returned and just wanted to wrap some presentation around it. I would
use the DOM with XPath (System.Xml namespace) If i just needed to pull
out a few values out of the Xml and display them to a user. The DOM
with XPath I think is simplier to use then XSLT.