How parse microsoft xml with php

  php, soap, xml, xml-parsing

I try parse xml receiving from server with function simplexml_load_string(), but I receive parse error. Is another way to parse this xml?

<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet"><xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="Measurements" msdata:UseCurrentLocale="true"><xs:complexType><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="Measurements"><xs:complexType><xs:sequence><xs:element name="Station" type="xs:long" minOccurs="0"/><xs:element name="ChannelID" type="xs:int" minOccurs="0"/><xs:element name="DateTime" type="xs:dateTime" minOccurs="0"/><xs:element name="Value" type="xs:double" minOccurs="0"/><xs:element name="Status" type="xs:int" minOccurs="0"/></xs:sequence></xs:complexType></xs:element></xs:choice></xs:complexType></xs:element></xs:schema><diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"><DocumentElement xmlns=""><Measurements diffgr:id="Measurements1" msdata:rowOrder="0"><Station>12</Station><ChannelID>6</ChannelID><DateTime>2021-06-04T18:10:00+02:00</DateTime><Value>13.77392</Value><Status>0</Status></Measurements><Measurements diffgr:id="Measurements2" msdata:rowOrder="1"><Station>12</Station><ChannelID>6</ChannelID><DateTime>2021-06-04T18:11:00+02:00</DateTime><Value>13.77652</Value><Status>0</Status></Measurements><Measurements diffgr:id="Measurements3" msdata:rowOrder="2"><Station>12</Station><ChannelID>6</ChannelID><DateTime>2021-06-04T18:12:00+02:00</DateTime><Value>13.77884</Value><Status>0</Status></Measurements></DocumentElement></diffgr:diffgram>

Source: Ask PHP

LEAVE A COMMENT