how to parse the xml string
hi,
I am using SOAP to send the request to the web server which gives me back the response to my request.The response which I get back is also an xml file and is as follows....... HTTP/1.1 200 OK Date: Wed, 03 Sep 2008 05:55:54 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: private, max-age=0 Content-Type: text/xml; charset=utf-8 Content-Length: 345 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><isAdminResponse xmlns="http://tectonas.com/"><isAdminResult>true</isAdminResult></sAdminResponse></soap:Body></soap:Envelope> Now what I want to do is I want to obtain the result from this entire xml string. I want "true" particularly for this example and want to store in the file.I am not getting how to obtain this from xml file.Please help me out......... Thanks in advance... |
which programming language?
|
Every programming-language (let's take Perl, for example...) is going to provide you with a very large infrastructure of existing code that can handle both HTML and, separately, XML.
Using Perl as a typical example, "everything in the world can be found in an archive called CPAN." (Every other language you can name has a similar archive of actively tested and maintained code.) Perl also has a favorite acronym: TMTOWTDI = "There's More Than One Way To Do It." :) If I were using Perl, then I know that a CPAN-library unit called CGI will provide anything I could possibly require in the way of interpreting that HTML-envelope ... everything from that HTTP/1.1 200 OK line through the first blank line. In other words, I don't have to "write" any code of my own to do that. CGI also provides all of the low-level functionality that I may need to send the HTTP reply back. The same is true of the XML: I don't have to write anything new. In fact, CPAN gives me many dozens of off-the-shelf tools both for building and for interpreting ("parsing") XML. On top of that, there's layer-upon-layer of existing, tested software that I can "simply use." Stuff that I absolutely do not have to write. Stuff that is used by tens-of-thousands of active web sites "just like mine." Or, yours. Frameworks for complete web-sites or for any portion thereof. Quote:
Quote:
|
All times are GMT -5. The time now is 08:10 AM. |