parse XML from URL (via SOAP)
I am attempting to build out a dashboard widget that will perform a validation check on a site RSS feed using the W3 Validator. Their API docs (http://feed2.w3.org/docs/soap.html) provide the method. Here is my function to get the data:
$feed = 'http://domain.com/feed/';
$request = new WP_Http;
$url = 'http://validator.w3.org/feed/check.cgi?url='.urlencode($feed).'output=soap12';
$response = wp_remote_get ( $url );
if( is_wp_error( $response ) ) {
echo 'pSorry, there was an error with your request./p';
} else {
$feed_data = $response['body'];
}
Here is the return: http://pastie.org/4397488
For the life of me, I cannot seem to parse out that XML properly. Is there a 3rd party library I should be using, or is there a native WP function that will handle this?