Code:
<?php
$xml = <<<EOD
<xs:schema id="Insurers" xmlns="" xmlnss="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-comml-msdata">
</xs:schema>
- <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-comml-msdata" xmlns:diffgr="urn:schemas-microsoft-comml-diffgram-v1">
<Insurers>
<Insurer diffgr:id="Insurer10" msdata:rowOrder="0">
<insurer>AdfgfA</insurer>
</Insurer>
<Insurer diffgr:id="Insurer20" msdata:rowOrder="1">
<insurer>AEdfgg</insurer>
</Insurer>
<Insurer diffgr:id="Insurer30" msdata:rowOrder="2">
<insurer>345345</insurer>
</Insurer>
</Insurers>
EOD;
$pattern = '~<Insurers>(.*)</Insurers>~s';
preg_match_all($pattern, $xml, $matches);
print_r($matches);
Works fine.
Bookmarks