About text containing xml structure $ html = 'http/1.20.okcache-Control: private, max-age = 0Content-Type: text/xml; charset = utf-8Server: microsoft-IIS/7.0X-about text containing xml structure
$ Html = 'http/1.1 200 OK Cache-Control: private, max-age = 0 Content-Type: text/xml; charset = utf-8 Server: microsoft-IIS/7.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP. NET Date: Mon, 22 Oct 2012 07:38:15 GMT Connection: close Content-Length: 315 0 11022153815002472 Submitted 0 ';
As shown above .. how to separate the strings and xml in $ html ?~~~
The php language is used.
Please forgive me ~~~
------ Solution --------------------
PHP code
Preg_match ('/<\? Xml version (. *) <\/CSubmitState>/is ', $ html, $ match); print_r ($ match [0]);
------ Solution --------------------
Echo strstr ($ html ,'
You have crawled the information. if you have removed the header, you don't have to differentiate it.