|
Posted by Sherm Pendley on April 20, 2007, 3:05 pm
Please log in for more thread options
> Taking a bit of a crash course in XML/SOAP. I got as far as getting a response
> back with XML code but having a tough time parsing it.
>
> Not sure if it's unique to me, but I'm getting a lot of data back as one line.
> Is that normal and would that mean I should probably take the "tree" style
> approach with XML::Parser?
The "normal" approach is to use Soap::Lite or some other module to send the
request and parse the response. You don't need to parse XML just to handle a
simple SOAP request. Why reinvent the wheel?
Anyway, to answer your question - callback-based XML parsers don't call your
handler functions for lines of text, they call them for tags. So it doesn't
matter if the XML is one line or a thousand.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net Cocoa programming in Perl: http://camelbones.sourceforge.net
|