webservice returns me some data. The data is actually just raw HTML (so no XML header, no tags around it, but just part of the html).
<div class="Workorders"> <div id="woo_9142" class="Workorder"> <span class="Workorder">S1005</span> <span class="Pn">30-2</span> <span class="Description">Cooling Fan</span> <span class="Shortages">3616-1 (SV)</span> <span class="Company">xxx</span> </div> <div id="woo_9143" class="Workorder"> <span class="Workorder">S1006</span> <span class="Pn">30-2</span> <span class="Description">Cooling Fan</span> <span class="Shortages">3616-1 (SV)</span> <span class="Company">xxx</span> </div> </div>
If these were such XML:
<workorders> <workorder id="woo_9142"> <partnumber>30-2</partnumber> </workorder> </workorders>
I could go like this in jQuery:
$('/workorders/workorder', data).each(function() {
How can I parse the returned HTML (as described at the beginning)?
myNamespace.onSuccess = function(request) {
source share